Package org.codehaus.groovy.runtime
Class InvokerInvocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
org.codehaus.groovy.runtime.InvokerInvocationException
- All Implemented Interfaces:
Serializable
Exception thrown when a method invocation targets and throws an exception.
Wraps the underlying exception for proper exception chaining.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an InvokerInvocationException from anInvocationTargetException.Constructs an InvokerInvocationException from anyThrowable. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string representation of this exception message.Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessageWithoutLocationText, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvokerInvocationException
Constructs an InvokerInvocationException from anInvocationTargetException. Extracts and wraps the underlying target exception.- Parameters:
e- theInvocationTargetExceptionwhose target exception will be wrapped
-
InvokerInvocationException
Constructs an InvokerInvocationException from anyThrowable.- Parameters:
cause- the underlying cause of the invocation failure
-
-
Method Details
-
getMessage
Returns a string representation of this exception message. If a cause exists, returns its string representation; otherwise returns the NullPointerException message.- Overrides:
getMessagein classGroovyRuntimeException- Returns:
- the exception message
-