Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
12345678910 |
- public aspect ExceptionAspect
- {
- pointcut exceptionThrower() :
- execution(public * ExceptionBugTest.*(..) throws Exception+);
-
- declare warning : exceptionThrower() : "throws both";
-
- declare error : execution(public * ExceptionBugTest.*(..) throws Exception) :
- "throws Exception";
- }
|