Top Description Fields Constructors Methods
org.springframework.beans

public abstract Class PropertyAccessException

extends BeansException
Class Inheritance
Known Direct Subclasses
org.springframework.beans.TypeMismatchException, org.springframework.beans.MethodInvocationException
Annotations
@SuppressWarnings:serial
Imports
java.beans.PropertyChangeEvent, org.springframework.lang.Nullable

Superclass for exceptions related to a property access, such as type mismatch or invocation target exception.
Authors
Rod Johnson, Juergen Hoeller

Field Summary

Modifier and TypeField and Description
private final PropertyChangeEvent

Constructor Summary

AccessConstructor and Description
public
PropertyAccessException(PropertyChangeEvent
the PropertyChangeEvent that resulted in the problem
propertyChangeEvent
,
String
the detail message
msg
,
Throwable
the root cause
cause
)

Create a new PropertyAccessException.

public
PropertyAccessException(String
the detail message
msg
,
Throwable
the root cause
cause
)

Create a new PropertyAccessException without PropertyChangeEvent.

Method Summary

Modifier and TypeMethod and Description
public abstract String
getErrorCode()

Return a corresponding error code for this type of exception.

public PropertyChangeEvent
getPropertyChangeEvent()

Return the PropertyChangeEvent that resulted in the problem.

public String
getPropertyName()

Return the name of the affected property, if available.

public Object
getValue()

Return the affected value that was about to be set, if any.

Field Detail

propertyChangeEventback to summary
private final PropertyChangeEvent propertyChangeEvent
Annotations
@Nullable

Constructor Detail

PropertyAccessExceptionback to summary
public PropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, Throwable cause)

Create a new PropertyAccessException.

Parameters
propertyChangeEvent:PropertyChangeEvent

the PropertyChangeEvent that resulted in the problem

msg:String

the detail message

cause:Throwable

the root cause

PropertyAccessExceptionback to summary
public PropertyAccessException(String msg, Throwable cause)

Create a new PropertyAccessException without PropertyChangeEvent.

Parameters
msg:String

the detail message

cause:Throwable

the root cause

Method Detail

getErrorCodeback to summary
public abstract String getErrorCode()

Return a corresponding error code for this type of exception.

getPropertyChangeEventback to summary
public PropertyChangeEvent getPropertyChangeEvent()

Return the PropertyChangeEvent that resulted in the problem.

May be null; only available if an actual bean property was affected.

Annotations
@Nullable
getPropertyNameback to summary
public String getPropertyName()

Return the name of the affected property, if available.

Annotations
@Nullable
getValueback to summary
public Object getValue()

Return the affected value that was about to be set, if any.

Annotations
@Nullable