public static class Err.DefHandler extends Object implements Err.Handler
text/html
requests the err
handler creates an err
view and set as model the Err.toMap()
.Constructor and Description |
---|
DefHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Request req,
Response rsp,
Err ex)
Handle a route exception by probably logging the error and sending a err response to the
client.
|
public static final String VIEW
public void handle(Request req, Response rsp, Err ex) throws Exception
Err.Handler
handle
in interface Err.Handler
req
- HTTP request.rsp
- HTTP response.ex
- Error found and status code.Exception
- If something goes wrong.Copyright © 2015. All rights reserved.