public abstract class PropertyAccessException extends BeansException
| 构造器和说明 |
|---|
PropertyAccessException(PropertyChangeEvent propertyChangeEvent,
String msg,
Throwable cause)
Create a new PropertyAccessException.
|
PropertyAccessException(String msg,
Throwable cause)
Create a new PropertyAccessException without PropertyChangeEvent.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
contains, getMessage, getMostSpecificCause, getRootCausepublic PropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, @Nullable Throwable cause)
propertyChangeEvent - the PropertyChangeEvent that resulted in the problemmsg - the detail messagecause - the root cause@Nullable public PropertyChangeEvent getPropertyChangeEvent()
May be null; only available if an actual bean property
was affected.
@Nullable public String getPropertyName()
@Nullable public Object getValue()
public abstract String getErrorCode()