org.springframework.beans
public class: MethodInvocationException [javadoc |
source]
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:
ErrorCoded, Serializable
Thrown when a bean property getter or setter method throws an exception,
analogous to an InvocationTargetException.
| Field Summary |
|---|
| public static final String | ERROR_CODE | Error code that a method invocation error will be registered with. |
| Constructor: |
public MethodInvocationException(PropertyChangeEvent propertyChangeEvent,
Throwable cause) {
super(propertyChangeEvent, "Property '" + propertyChangeEvent.getPropertyName() + "' threw exception", cause);
}
Create a new MethodInvocationException. Parameters:
propertyChangeEvent - PropertyChangeEvent that resulted in an exception
cause - the Throwable raised by the invoked method
|
| Method from org.springframework.beans.MethodInvocationException Summary: |
|---|
|
getErrorCode |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.springframework.beans.MethodInvocationException Detail: |
public String getErrorCode() {
return ERROR_CODE;
}
|