You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ExceptionAspect.java 312B

12345678910
  1. public aspect ExceptionAspect
  2. {
  3. pointcut exceptionThrower() :
  4. execution(public * ExceptionBugTest.*(..) throws Exception+);
  5. declare warning : exceptionThrower() : "throws both";
  6. declare error : execution(public * ExceptionBugTest.*(..) throws Exception) :
  7. "throws Exception";
  8. }