AfterThrowingAdvice - trap and return something else?
If a method throws an exception and this is intercepted by an after-throwing advice can this trap the exception and instead propagate a method return response as per the original method?
e.g.
original method that can throw a IOException lets say:
public
Code:
String getName() throws IOException {..}
Advice:
Code:
public String processException(IOException e) {
LOG.exception (e);
return "NONAME";
}
If that is not possible can I throw a new type of exception?