aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1810/501656/ApplicationExceptionHandler.java
blob: bd96e1c27cadf22c2647a06c42f9b7f7f389768e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.myapp.aspect;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;

import com.myapp.ApplicationException;

@Aspect
public abstract class ApplicationExceptionHandler<EX extends ApplicationException> {
    @AfterThrowing(
        pointcut = "execution(* com.myapp.*.facade.*.*(..))",
        throwing = "exception"
, argNames="exception"
    )
    public abstract void handleFacadeException(EX exception);

}