Per feedback, scoped catch block to Exception instead of Throwable
This commit is contained in:
parent
3ea2c3a47e
commit
56467dd463
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue