Class ExceptionInterceptor

java.lang.Object
org.alfresco.rest.api.impl.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 Details

    • ExceptionInterceptor

      public ExceptionInterceptor()
  • Method Details

    • 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