Bind an After-Throwing Advice
Binding After Throwing Advices To bind an after throwing advice to a pointcut, simply insert the tag in a binding xml declaration, as in the following example: Differently from other advice types, after-throwing advices are not called everytime an intercepted joinpoint gets executed. On the contrary, after-throwing advices are invoked only when the joinpoint throws an exception. So, in the binding example above, this means that afterThrowing will be invoked only after a POJO method throws an exception, instead of being invoked after all POJO methods' executions.