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.core.NestedRuntimeException
                  extended by org.springframework.binding.method.MethodInvocationException
All Implemented Interfaces:
java.io.Serializable

public class MethodInvocationException
extends org.springframework.core.NestedRuntimeException

Base class for exceptions that report a method invocation failure.

Author:
Keith Donald
See Also:
Serialized Form

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

Constructor Detail

MethodInvocationException

public MethodInvocationException(MethodSignature methodSignature,
                                 java.lang.Object[] arguments,
                                 java.lang.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 java.lang.Object[] getArguments()
Returns the method invocation arguments.


getTargetException

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

Returns:
the target throwable


Copyright � 2004-2007. All Rights Reserved.