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:
publicAdvice:Code:String getName() throws IOException {..}If that is not possible can I throw a new type of exception?Code:public String processException(IOException e) { LOG.exception (e); return "NONAME"; }


Reply With Quote