public final class PropertyAccessException extends PropertyException
PropertyAdapter
,
Serialized FormConstructor and Description |
---|
PropertyAccessException(String message,
Throwable cause)
Constructs a new exception instance with the specified detail message
and cause.
|
Modifier and Type | Method and Description |
---|---|
static PropertyAccessException |
createReadAccessException(Object bean,
PropertyAccessor propertyAccessor,
String causeMessage)
Creates and returns a new PropertyAccessException instance for a failed
read access for the specified bean, property accessor and cause.
|
static PropertyAccessException |
createReadAccessException(Object bean,
PropertyAccessor propertyAccessor,
Throwable cause)
Creates and returns a new PropertyAccessException instance for a failed
read access for the specified bean, property accessor and cause.
|
static PropertyAccessException |
createWriteAccessException(Object bean,
Object value,
PropertyAccessor propertyAccessor,
String causeMessage)
Creates and returns a new PropertyAccessException instance for a failed
write access for the specified bean, value, property accessor and
cause.
|
static PropertyAccessException |
createWriteAccessException(Object bean,
Object value,
PropertyAccessor propertyAccessor,
Throwable cause)
Creates and returns a new PropertyAccessException instance for a failed
write access for the specified bean, value, property accessor and
cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PropertyAccessException(String message, 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(Object bean, PropertyAccessor propertyAccessor, Throwable cause)
bean
- the target beanpropertyAccessor
- 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 createReadAccessException(Object bean, PropertyAccessor propertyAccessor, String causeMessage)
bean
- the target beanpropertyAccessor
- describes the bean's propertycauseMessage
- describes the causepublic static PropertyAccessException createWriteAccessException(Object bean, Object value, PropertyAccessor propertyAccessor, Throwable cause)
bean
- the target beanvalue
- the value that could not be setpropertyAccessor
- 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(Object bean, Object value, PropertyAccessor propertyAccessor, String causeMessage)
bean
- the target beanvalue
- the value that could not be setpropertyAccessor
- describes the bean's propertycauseMessage
- describes the causeCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.