Package org.springframework.beans
Class MethodInvocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyAccessException
org.springframework.beans.MethodInvocationException
- All Implemented Interfaces:
- Serializable
Thrown when a bean property getter or setter method throws an exception,
 analogous to an InvocationTargetException.
- Author:
- Rod Johnson
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringError code that a method invocation error will be registered with.
- 
Constructor SummaryConstructorsConstructorDescriptionMethodInvocationException(PropertyChangeEvent propertyChangeEvent, @Nullable Throwable cause) Create a new MethodInvocationException.
- 
Method SummaryModifier and TypeMethodDescriptionReturn a corresponding error code for this type of exception.Methods inherited from class org.springframework.beans.PropertyAccessExceptiongetPropertyChangeEvent, getPropertyName, getValueMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
ERROR_CODEError code that a method invocation error will be registered with.- See Also:
 
 
- 
- 
Constructor Details- 
MethodInvocationExceptionpublic MethodInvocationException(PropertyChangeEvent propertyChangeEvent, @Nullable Throwable cause) Create a new MethodInvocationException.- Parameters:
- propertyChangeEvent- the PropertyChangeEvent that resulted in an exception
- cause- the Throwable raised by the invoked method
 
 
- 
- 
Method Details- 
getErrorCodeDescription copied from class:PropertyAccessExceptionReturn a corresponding error code for this type of exception.- Specified by:
- getErrorCodein class- PropertyAccessException
 
 
-