THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
In your WebApplication class...
... getApplicationSettings().setPageExpiredErrorPage(PageExpiredErrorPage.class); getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class); getApplicationSettings().setInternalErrorPage(InternalErrorPage.class); // show internal error page rather than default developer page getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); ...
You can also add customized error per page. In your WebPage class...
... getRequestCycle().onRuntimeException(new MyErrorPage(), theException); ...