public void handleError(PresentableState state, Throwable t) throws IOException, ServletException { state.getResponse().setHeader("X-Frame-Options", "DENY"); JSPUtil.handleException(t, state.getRequest(), state.getResponse(), ERROR_PAGE); }
public void handleError(PresentableState state, Throwable t) throws IOException, ServletException { AuthorizedState aState = (AuthorizedState) state; state.getResponse().setHeader("X-Frame-Options", "DENY"); state.getRequest().setAttribute("client", aState.getTransaction().getClient()); JSPUtil.handleException(t, state.getRequest(), state.getResponse(), ERROR_PAGE); }
JSPUtil.handleException(new RuntimeException("Please specify a gateway name."), request, response, configurationReader.getErrorUrl()); return; JSPUtil.handleException(new RuntimeException("Please specify a portal user name."), request, response, configurationReader.getErrorUrl()); return; JSPUtil.handleException(new RuntimeException("Please specify a contact email address for community" + " user account."), request, response, configurationReader.getErrorUrl()); return; JSPUtil.handleException(t, request, response, configurationReader.getErrorUrl()); return;