errorPage.setErrorCode(status); errorPage.setReason(reason);
private static void addErrorPages(Context context) { for (int errorCode : ERROR_PAGE_STATUSES) { ErrorPage errorPage = new ErrorPage(); errorPage.setErrorCode(errorCode); errorPage.setLocation("/error.jspx"); context.addErrorPage(errorPage); } ErrorPage errorPage = new ErrorPage(); errorPage.setExceptionType(Throwable.class.getName()); errorPage.setLocation("/error.jspx"); context.addErrorPage(errorPage); }
errorPage.setErrorCode(value.getErrorCode()); errorPage.setExceptionType(value.getExceptionType()); errorPage.setLocation(value.getLocation());