com.jgoodies.binding.beans
Class PropertyAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jgoodies.binding.beans.PropertyException
com.jgoodies.binding.beans.PropertyAccessException
- All Implemented Interfaces:
- java.io.Serializable
public final class PropertyAccessException
- extends PropertyException
A runtime exception that describes read and write access problems when
getting/setting a Java Bean property.
- Version:
- $Revision: 1.8 $
- Author:
- Karsten Lentzsch
- See Also:
PropertyAdapter
,
Serialized Form
Constructor Summary |
PropertyAccessException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception instance with the specified detail message
and cause. |
Method Summary |
static PropertyAccessException |
createReadAccessException(java.lang.Object bean,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Throwable cause)
Creates and returns a new PropertyAccessException instance for a failed
read access for the specified bean, property descriptor and cause. |
static PropertyAccessException |
createWriteAccessException(java.lang.Object bean,
java.lang.Object value,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Throwable cause)
Creates and returns a new PropertyAccessException instance for a failed
write access for the specified bean, value, property descriptor and
cause. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PropertyAccessException
public PropertyAccessException(java.lang.String message,
java.lang.Throwable cause)
- Constructs a new exception instance with the specified detail message
and cause.
- Parameters:
message
- the detail message which is saved for later retrieval by
the Throwable.getMessage()
method.cause
- the cause which is saved for later retrieval by the
Throwable.getCause()
method. A null
value is permitted,
and indicates that the cause is nonexistent or unknown.
createReadAccessException
public static PropertyAccessException createReadAccessException(java.lang.Object bean,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Throwable cause)
- Creates and returns a new PropertyAccessException instance for a failed
read access for the specified bean, property descriptor and cause.
- Parameters:
bean
- the target beanpropertyDescriptor
- describes the bean's propertycause
- the cause which is saved for later retrieval by the
Throwable.getCause()
method. A null
value is permitted,
and indicates that the cause is nonexistent or unknown.
- Returns:
- an exception that describes a read access problem
createWriteAccessException
public static PropertyAccessException createWriteAccessException(java.lang.Object bean,
java.lang.Object value,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Throwable cause)
- Creates and returns a new PropertyAccessException instance for a failed
write access for the specified bean, value, property descriptor and
cause.
- Parameters:
bean
- the target beanvalue
- the value that could not be setpropertyDescriptor
- describes the bean's propertycause
- the cause which is saved for later retrieval by the
Throwable.getCause()
method. A null
value is permitted,
and indicates that the cause is nonexistent or unknown.
- Returns:
- an exception that describes a write access problem
Copyright © 2002-2010 JGoodies Karsten Lentzsch. All Rights Reserved.