org.springframework.binding.method
Class MethodInvocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.binding.method.MethodInvocationException
All Implemented Interfaces:
Serializable

public class MethodInvocationException
extends RuntimeException

Base class for exceptions that report a method invocation failure.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
MethodInvocationException(MethodSignature methodSignature, Object[] arguments, Throwable cause)
          Signals that the method with the specified signature could not be invoked with the provided arguments.
 
Method Summary
 Object[] getArguments()
          Returns the method invocation arguments.
 MethodSignature getMethodSignature()
          Returns the invoked method's signature.
 Throwable getTargetException()
          Returns the target root cause exception of the method invocation failure.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInvocationException

public MethodInvocationException(MethodSignature methodSignature,
                                 Object[] arguments,
                                 Throwable cause)
Signals that the method with the specified signature could not be invoked with the provided arguments.

Parameters:
methodSignature - the method signature
arguments - the arguments
cause - the root cause
Method Detail

getMethodSignature

public MethodSignature getMethodSignature()
Returns the invoked method's signature.


getArguments

public Object[] getArguments()
Returns the method invocation arguments.


getTargetException

public Throwable getTargetException()
Returns the target root cause exception of the method invocation failure.

Returns:
the target throwable