Class InterceptionException

All Implemented Interfaces:
Serializable

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

    • InterceptionException

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

      public InterceptionException(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
  • 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