public class InvokerInvocationException
extends GroovyRuntimeException
Exception thrown when a method invocation targets and throws an exception. Wraps the underlying exception for proper exception chaining.
| Constructor and description |
|---|
InvokerInvocationException(InvocationTargetException e)Constructs an InvokerInvocationException from an InvocationTargetException. |
InvokerInvocationException(Throwable cause)Constructs an InvokerInvocationException from any Throwable. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getMessage()Returns a string representation of this exception message. |
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Constructs an InvokerInvocationException from an InvocationTargetException. Extracts and wraps the underlying target exception.
e - the InvocationTargetException whose target exception will be wrappedReturns a string representation of this exception message. If a cause exists, returns its string representation; otherwise returns the NullPointerException message.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.