com.jgoodies.binding.beans
public final class PropertyAccessException extends PropertyException
PropertyAdapter
,
Serialized FormConstructor and Description |
---|
PropertyAccessException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception instance with the specified detail message
and cause.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PropertyAccessException(java.lang.String message, java.lang.Throwable cause)
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.public static PropertyAccessException createReadAccessException(java.lang.Object bean, java.beans.PropertyDescriptor propertyDescriptor, java.lang.Throwable cause)
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.public static PropertyAccessException createWriteAccessException(java.lang.Object bean, java.lang.Object value, java.beans.PropertyDescriptor propertyDescriptor, java.lang.Throwable cause)
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.Copyright © 2002-2010 JGoodies Karsten Lentzsch. All Rights Reserved.