public class MethodInvocationException extends RuntimeException
Constructor and Description |
---|
MethodInvocationException(MethodSignature methodSignature,
Object[] arguments,
Throwable cause)
Signals that the method with the specified signature could not be invoked with the provided arguments.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MethodInvocationException(MethodSignature methodSignature, Object[] arguments, Throwable cause)
methodSignature
- the method signaturearguments
- the argumentscause
- the root causepublic MethodSignature getMethodSignature()
public Object[] getArguments()
public Throwable getTargetException()