Updated the TODO
This commit is contained in:
@@ -20,6 +20,10 @@ public class AnnotationHandler implements HandlerExceptionResolver {
|
||||
private static final String UTF_8 = "UTF-8";
|
||||
|
||||
//TODO: When there's a wrapper exception leave it unannotated… call the e.getCause() method… until there is an annotated exception or if there are no more causes (e.geCause()==null)??.
|
||||
/* If the exception thrown is annotated, use the message from that
|
||||
* If it is not annotated, call getCause() until you reach the innermost annotated exception. Use that message.
|
||||
* If getCause()==null, return the default message and response code
|
||||
*/
|
||||
@Override
|
||||
public ModelAndView resolveException(final HttpServletRequest request, final HttpServletResponse response, final Object handler, final Exception thrownException) {
|
||||
final ExceptionHandler annotation = getAnnotationFrom(thrownException);
|
||||
|
||||
Reference in New Issue
Block a user