public abstract class PropertyAccessException extends BeansException
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.
|
contains, getMessage, getMostSpecificCause, getRootCause
public PropertyAccessException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.String msg, @Nullable java.lang.Throwable cause)
propertyChangeEvent
- the PropertyChangeEvent that resulted in the problemmsg
- the detail messagecause
- the root causepublic PropertyAccessException(java.lang.String msg, @Nullable java.lang.Throwable cause)
msg
- the detail messagecause
- the root cause@Nullable public java.beans.PropertyChangeEvent getPropertyChangeEvent()
May be null
; only available if an actual bean property
was affected.
@Nullable public java.lang.String getPropertyName()
@Nullable public java.lang.Object getValue()
public abstract java.lang.String getErrorCode()