Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warningtip
titleRemove this page or extract from FAQs?See FAQs
Code Block
... getApplicationSettings(

This page has the same content as FAQs/How do I add custom error pages (like Page Expired)?
I'd remove it, but I can't.

In your WebApplication class...

)

.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...

Code Block
... getRequestCycle().onRuntimeException(new MyErrorPage(), theException); ...