The environment
An optional router. If provided, in dev mode, will be used to display more debug information when a handler can't be found. This is a lazy parameter, to avoid circular dependency issues, since the router may well depend on this.
Responsible for logging server errors.
Responsible for logging server errors.
This can be overridden to add additional logging information, eg. the id of the authenticated user.
The request that triggered the server error.
The server error.
Invoked when a client makes a bad request.
Invoked when a client makes a bad request.
The request that was bad.
The error message.
Invoked when a client error occurs, that is, an error in the 4xx series.
Invoked when a client error occurs, that is, an error in the 4xx series.
The request that caused the client error.
The error status code. Must be greater or equal to 400, and less than 500.
The error message.
Invoked in dev mode when a server error occurs.
Invoked in dev mode when a server error occurs.
The request that triggered the error.
The exception.
Invoked when a client makes a request that was forbidden.
Invoked when a client makes a request that was forbidden.
The forbidden request.
The error message.
Invoked when a handler or resource is not found.
Invoked when a handler or resource is not found.
The request that no handler was found to handle.
A message.
Invoked when a client error occurs, that is, an error in the 4xx series, which is not handled by any of the other methods in this class already.
Invoked when a client error occurs, that is, an error in the 4xx series, which is not handled by any of the other methods in this class already.
The request that caused the client error.
The error status code. Must be greater or equal to 400, and less than 500.
The error message.
Invoked in prod mode when a server error occurs.
Invoked in prod mode when a server error occurs.
Override this rather than onServerError() if you don't want to change Play's debug output when logging errors in dev mode.
The request that triggered the error.
The exception.
Invoked when a server error occurs.
Invoked when a server error occurs.
By default, the implementation of this method delegates to onProdServerError() when in prod mode, and onDevServerError() in dev mode. It is recommended, if you want Play's debug info on the error page in dev mode, that you override onProdServerError() instead of this method.
The request that triggered the server error.
The server error.
The default HTTP error handler.
This class is intended to be extended, allowing users to reuse some of the functionality provided here.