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