THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public final class MyRequestCycle extends WebRequestCycle { /** * MyRequestCycle constructor * * @param application the web application * @param request the web request * @param response the web response */ public WebRequestCycle(final WebApplication application, final WebRequest request, final Response response) { super(application, request, response); } /** * {@inheritDoc} */ @Override protected final Page onRuntimeException(final RuntimeExceptionPage ecause, final PageRuntimeException causee) { // obviously you can check the instanceof the exception and return the appropriate page if desired return new MyExceptionPage(e); } } |
...