Also when I follow this pages instructions:
https://tapestry.apache.org/error-page-recipe.html
It is not showing my custom error page... but still the default
exception report from Tapestry.
I did exactly as described. My application runs in development mode and
uses maven jetty plugin (version 8+).
What can be the problem here?
On 10/09/15 16:56, Nathan Quirynen wrote:
Hi,
How can I set a redirect when an exception has been thrown?
I tried the following:
@Match("RequestExceptionHandler")
public static RequestExceptionHandler
decorateRequestExceptionHandler(final Response response) {
return new RequestExceptionHandler() {
@Override
public void handleRequestException(Throwable exception)
throws IOException {
response.sendRedirect("http://www.google.be");
}
};
}
But this seems to only work for non-XHR requests? Or did I forget
something here?
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org