Class ExceptionInterceptor

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public class ExceptionInterceptor
    extends Object
    implements org.aopalliance.intercept.MethodInterceptor
    An interceptor that catches exceptions and handlers them in some way, possibly by re-throwing as a different exception.
    Author:
    steveglover
    • Constructor Detail

      • ExceptionInterceptor

        public ExceptionInterceptor()
    • Method Detail

      • setExceptionHandlers

        public void setExceptionHandlers​(List<ExceptionHandler> exceptionHandlers)
      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
                      throws Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        Throwable