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:
- java.io.Serializable, org.springframework.core.ErrorCoded
public class MethodInvocationException
- extends PropertyAccessException
Thrown when a bean property getter or setter method throws an exception,
analogous to an InvocationTargetException.
- Author:
- Rod Johnson
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ERROR_CODE
Error code that a method invocation error will be registered with. |
Constructor Summary |
MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Throwable cause)
Create a new MethodInvocationException. |
Methods inherited from class org.springframework.core.NestedRuntimeException |
contains, getMessage, getMostSpecificCause, getRootCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ERROR_CODE
public static final java.lang.String ERROR_CODE
- Error code that a method invocation error will be registered with.
- See Also:
- Constant Field Values
MethodInvocationException
public MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Throwable cause)
- Create a new MethodInvocationException.
- Parameters:
propertyChangeEvent
- PropertyChangeEvent that resulted in an exceptioncause
- the Throwable raised by the invoked method
getErrorCode
public java.lang.String getErrorCode()