Package: org.codehaus.groovy.runtime

## [Java] Class InvokerInvocationException

- org.codehaus.groovy.runtime.InvokerInvocationException

-     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 Summary

    Constructors
    Constructor and description
    `InvokerInvocationException(InvocationTargetException e)` Constructs an InvokerInvocationException from an InvocationTargetException.
    `InvokerInvocationException(Throwable cause)` Constructs an InvokerInvocationException from any Throwable.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public String` | `getMessage()` Returns a string representation of this exception message.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GroovyRuntimeException` | `getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule`

- - ### Constructor Detail

    - #### public InvokerInvocationException(InvocationTargetException e)

      Constructs an InvokerInvocationException from an InvocationTargetException. Extracts and wraps the underlying target exception.

      Parameters:
        `e` - the InvocationTargetException whose target exception will be wrapped

    - #### public InvokerInvocationException(Throwable cause)

      Constructs an InvokerInvocationException from any Throwable.

      Parameters:
        `cause` - the underlying cause of the invocation failure

  - ### Method Detail

    - #### public String getMessage()

      Returns a string representation of this exception message. If a cause exists, returns its string representation; otherwise returns the NullPointerException message.

      Returns:
        the exception message