if (!(t instanceof GrailsWrappedRuntimeException) && request.getAttribute("exception") == null) {
request.setAttribute("exception", new GrailsWrappedRuntimeException(getServletContext(), t));
}
}
final UrlMappingsHolder urlMappingsHolder = (UrlMappingsHolder)getBean(UrlMappingsHolder.BEAN_ID);
UrlMappingInfo urlMappingInfo = null;
if (t != null) {
// stackFilterer.filter(t, true);
urlMappingInfo = urlMappingsHolder.matchStatusCode(statusCode, t);
if (urlMappingInfo == null) {
urlMappingInfo = urlMappingsHolder.matchStatusCode(statusCode, GrailsExceptionResolver.getRootCause(t));
}
}
if (urlMappingInfo == null) {
urlMappingInfo = urlMappingsHolder.matchStatusCode(statusCode);
}
if (urlMappingInfo == null) {
renderDefaultResponse(response, statusCode);
return;