Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Exception Handling

Is it possible to advice methods that "eat" exceptions so that they always throw a runtime exception.  For example:

public void someMethod() {
   try {
      someMethodThrowsCheckedException();
   }
   catch(Exception e) { /* do absolutely nothing */ }


I would like to advise this method, without modifying the siganture, to throw an unchecked exception when "Exception" is thrown

Thanks in advance
Tim McNamara
     

Back to the top