Class MethodInvocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.binding.method.MethodInvocationException
- All Implemented Interfaces:
Serializable
Base class for exceptions that report a method invocation failure.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodInvocationException
(MethodSignature methodSignature, Object[] arguments, Throwable cause) Signals that the method with the specified signature could not be invoked with the provided arguments. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns the method invocation arguments.Returns the invoked method's signature.Returns the target root cause exception of the method invocation failure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 signaturearguments
- the argumentscause
- the root cause
-
-
Method Details
-
getMethodSignature
Returns the invoked method's signature. -
getArguments
Returns the method invocation arguments. -
getTargetException
Returns the target root cause exception of the method invocation failure.- Returns:
- the target throwable
-