How to ignore exceptions thrown by Advice class
Posted on 2008-09-30
Say I have an AOP advice method that throws an exception.
I have after-throwing interceptors (multiple) in place to log the exception but after that I wish to catch the exception and ignore it, but only if it eminates from the advice code, and not the original proxied class.
Is there a way to do this so that the exception from the aop advice does not interfere with the operation of the main application, or do I need to set up every advice method with an @Around and handle it within there?
Can I set up a pointcut on Advice methods so that I can trap exceptions only if they occur within the advice methods?