aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1810/501656/ApplicationExceptionHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1810/501656/ApplicationExceptionHandler.java')
-rw-r--r--tests/bugs1810/501656/ApplicationExceptionHandler.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs1810/501656/ApplicationExceptionHandler.java b/tests/bugs1810/501656/ApplicationExceptionHandler.java
new file mode 100644
index 000000000..bd96e1c27
--- /dev/null
+++ b/tests/bugs1810/501656/ApplicationExceptionHandler.java
@@ -0,0 +1,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);
+
+}