Class InvocationException

All Implemented Interfaces:
Serializable

public class InvocationException extends InjectionServiceProviderException
Wraps any checked exceptions that are thrown during the Interceptor invocations.
See Also:
  • Constructor Details

    • InvocationException

      public InvocationException(String msg, boolean targetWasCalled)
      Constructor.
      Parameters:
      msg - the message
      targetWasCalled - set to true if the target of interception was ultimately called successfully
    • InvocationException

      public InvocationException(String msg, Throwable cause, boolean targetWasCalled)
      Constructor.
      Parameters:
      msg - the message
      cause - the root cause
      targetWasCalled - set to true if the target of interception was ultimately called successfully
    • InvocationException

      public InvocationException(String msg, Throwable cause, ServiceProvider<?> serviceProvider, boolean targetWasCalled)
      Constructor.
      Parameters:
      msg - the message
      cause - the root cause
      serviceProvider - the service provider
      targetWasCalled - set to true if the target of interception was ultimately called successfully
  • Method Details

    • targetWasCalled

      public boolean targetWasCalled()
      Returns true if the final target of interception was ultimately called.
      Returns:
      if the target being intercepted was ultimately called successfully