1 2 3 4 5 6 7 8 9
public aspect AspectDeclareSoft { declare soft: MyException: execution(* main(..)); declare soft: Exception+: execution(* main(..)); } class MyException extends Exception {}