Class PropertyAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyAccessException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MethodInvocationException, TypeMismatchException
Superclass for exceptions related to a property access,
such as type mismatch or invocation target exception.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, @Nullable Throwable cause) Create a new PropertyAccessException.PropertyAccessException(String msg, @Nullable Throwable cause) Create a new PropertyAccessException without PropertyChangeEvent.
- 
Method SummaryModifier and TypeMethodDescriptionabstract StringReturn a corresponding error code for this type of exception.Return the PropertyChangeEvent that resulted in the problem.Return the name of the affected property, if available.getValue()Return the affected value that was about to be set, if any.Methods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
PropertyAccessExceptionpublic PropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, @Nullable Throwable cause) Create a new PropertyAccessException.- Parameters:
- propertyChangeEvent- the PropertyChangeEvent that resulted in the problem
- msg- the detail message
- cause- the root cause
 
- 
PropertyAccessException
 
- 
- 
Method Details- 
getPropertyChangeEventReturn the PropertyChangeEvent that resulted in the problem.May be null; only available if an actual bean property was affected.
- 
getPropertyName
- 
getValue
- 
getErrorCodeReturn a corresponding error code for this type of exception.
 
-