Updated the TODO

This commit is contained in:
Rachel Walker
2012-12-20 17:44:23 -08:00
parent 88396fcd75
commit 138d0e78be

View File

@@ -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);