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.
Sets the play editor to the given string after initialization.
Sets the play editor to the given string after initialization. Used for tests, or cases where the existing configuration isn't sufficient.
the play editor string.
A default HTTP error handler that can be used when there's no application available.
Note: this HttpErrorHandler should ONLY be used in DEV or TEST. The way this displays errors to the user is generally not suitable for a production environment.