public abstract class PropertyAccessException extends BeansException implements ErrorCoded
Constructor and Description |
---|
PropertyAccessException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.String msg,
java.lang.Throwable cause)
Create a new PropertyAccessException.
|
PropertyAccessException(java.lang.String msg,
java.lang.Throwable cause)
Create a new PropertyAccessException without PropertyChangeEvent.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getErrorCode()
Return a corresponding error code for this type of exception.
|
java.beans.PropertyChangeEvent |
getPropertyChangeEvent()
Return the PropertyChangeEvent that resulted in the problem.
|
java.lang.String |
getPropertyName()
Return the name of the affected property, if available.
|
java.lang.Object |
getValue()
Return the affected value that was about to be set, if any.
|
equals, hashCode
contains, getMessage, getMostSpecificCause, getRootCause
public PropertyAccessException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.String msg, java.lang.Throwable cause)
propertyChangeEvent
- the PropertyChangeEvent that resulted in the problemmsg
- the detail messagecause
- the root causepublic PropertyAccessException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail messagecause
- the root causepublic java.beans.PropertyChangeEvent getPropertyChangeEvent()
May be null
; only available if an actual bean property
was affected.
public java.lang.String getPropertyName()
public java.lang.Object getValue()
public abstract java.lang.String getErrorCode()
getErrorCode
in interface ErrorCoded
null
if not error-coded