object DefaultHttpErrorHandler extends DefaultHttpErrorHandler
- Alphabetic
- By Inheritance
- DefaultHttpErrorHandler
- DefaultHttpErrorHandler
- HttpErrorHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def onClientError(request: RequestHeader, statusCode: Int, message: String): Future[Result]
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.
- request
The request that caused the client error.
- statusCode
The error status code. Must be greater or equal to 400, and less than 500.
- message
The error message.
- Definition Classes
- → HttpErrorHandler
- def onServerError(request: RequestHeader, exception: Throwable): Future[Result]
Invoked when a server error occurs.
Invoked when a server error occurs.
By default, the implementation of this method delegates to when in prod mode, and 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.
- request
The request that triggered the server error.
- exception
The server error.
- Definition Classes
- → HttpErrorHandler
- def setPlayEditor(editor: String): Unit
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.
- editor
the play editor string.
- Definition Classes
- DefaultHttpErrorHandler
A fallback default HTTP error handler that can be used when there's no application available.
Note: this HttpErrorHandler uses the default
HttpErrorConfig
, which does notshowDevErrors
. It is largely here to preserve binary compatibility, but should be overridden with an injected HttpErrorHandler.