Class InvokerInvocationException

All Implemented Interfaces:
Serializable

public class InvokerInvocationException extends GroovyRuntimeException
Exception thrown when a method invocation targets and throws an exception. Wraps the underlying exception for proper exception chaining.
See Also:
  • Constructor Details

    • InvokerInvocationException

      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
    • InvokerInvocationException

      public InvokerInvocationException(Throwable cause)
      Constructs an InvokerInvocationException from any Throwable.
      Parameters:
      cause - the underlying cause of the invocation failure
  • Method Details

    • getMessage

      public String getMessage()
      Returns a string representation of this exception message. If a cause exists, returns its string representation; otherwise returns the NullPointerException message.
      Overrides:
      getMessage in class GroovyRuntimeException
      Returns:
      the exception message