Save This Page
Home » spring-framework-2.5.4 » org.springframework » beans » [javadoc | source]
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) 
    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 org.springframework.beans.PropertyAccessException:
getPropertyChangeEvent
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.MethodInvocationException Detail:
 public String getErrorCode()