Class MethodInvocationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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:
  • Constructor Details

    • 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 Details

    • 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