public ExceptionWrapper(Throwable t) { super(t); this.message = formatMessage(t); }
private void dispatchHttpRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { AccessLogEntry accessLogEntry = new AccessLogEntry(); request.setAttribute(ATTRIBUTE_NAME_ACCESS_LOG_ENTRY, accessLogEntry); try { switch (request.getDispatcherType()) { case REQUEST: new HttpRequestDispatch(context, accessLogEntry, getMetricContext(request), request, response) .dispatch(); break; default: if (log.isLoggable(Level.INFO)) { log.info("Unexpected " + request.getDispatcherType() + "; " + formatAttributes(request)); } break; } } catch (OverloadException e) { // nop } catch (RuntimeException e) { throw new ExceptionWrapper(e); } }