Per feedback, scoped catch block to Exception instead of Throwable

This commit is contained in:
Scott Battaglia 2014-11-26 22:31:01 -05:00
parent 51a9192792
commit 5109132df3
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public final class ErrorRedirectFilter implements Filter {
final HttpServletResponse httpResponse = (HttpServletResponse) response;
try {
filterChain.doFilter(request, response);
} catch (final Throwable e) {
} catch (final Exception e) {
final Throwable t = extractErrorToCompare(e);
ErrorHolder currentMatch = null;
for (final ErrorHolder errorHolder : this.errors) {