org.springframework.beans

Class MethodInvocationException

  • All Implemented Interfaces:
    java.io.Serializable


    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

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ERROR_CODE
      Error code that a method invocation error will be registered with.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.Throwable cause)
      Create a new MethodInvocationException.
    • Field Detail

      • 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
    • Constructor Detail

      • MethodInvocationException

        public MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent,
                                         java.lang.Throwable cause)
        Create a new MethodInvocationException.
        Parameters:
        propertyChangeEvent - the PropertyChangeEvent that resulted in an exception
        cause - the Throwable raised by the invoked method