Class MethodInvocationException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.PropertyAccessException
                          extended by org.springframework.beans.MethodInvocationException
All Implemented Interfaces:
Serializable, ErrorCoded

public class MethodInvocationException
extends PropertyAccessException

Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.

Rod Johnson
See Also:
Serialized Form

Field Summary
static String ERROR_CODE
          Error code that a method invocation error will be registered with.
Constructor Summary
MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause)
          Create a new MethodInvocationException.
Method Summary
 String getErrorCode()
          Return the error code associated with this failure.
Methods inherited from class org.springframework.beans.PropertyAccessException
getPropertyChangeEvent, getPropertyName, getValue
Methods inherited from class org.springframework.beans.BeansException
equals, hashCode
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

Field Detail


public static final String ERROR_CODE
Error code that a method invocation error will be registered with.

See Also:
Constant Field Values
Constructor Detail


public MethodInvocationException(PropertyChangeEvent propertyChangeEvent,
                                 Throwable cause)
Create a new MethodInvocationException.

propertyChangeEvent - PropertyChangeEvent that resulted in an exception
cause - the Throwable raised by the invoked method
Method Detail


public String getErrorCode()
Description copied from interface: ErrorCoded
Return the error code associated with this failure. The GUI can render this any way it pleases, allowing for localization etc.

a String error code associated with this failure, or null if not error-coded