Lines 217-231
Link Here
|
217 |
return; |
217 |
return; |
218 |
|
218 |
|
219 |
Throwable realError = throwable; |
219 |
Throwable realError = throwable; |
220 |
|
220 |
ErrorPage errorPage = null; |
221 |
if (realError instanceof ServletException) { |
221 |
if (realError instanceof ServletException) { |
222 |
realError = ((ServletException) realError).getRootCause(); |
222 |
errorPage = findErrorPage(context, (ServletException) realError); |
223 |
if (realError == null) { |
223 |
if (errorPage == null){ |
224 |
realError = throwable; |
224 |
realError = ((ServletException) realError).getRootCause(); |
|
|
225 |
if (realError == null) { |
226 |
realError = throwable; |
227 |
} |
225 |
} |
228 |
} |
226 |
} |
229 |
} |
227 |
|
230 |
|
228 |
ErrorPage errorPage = findErrorPage(context, realError); |
231 |
errorPage = findErrorPage(context, realError); |
229 |
|
232 |
|
230 |
if (errorPage != null) { |
233 |
if (errorPage != null) { |
231 |
response.setAppCommitted(false); |
234 |
response.setAppCommitted(false); |