Packages

object DefaultHttpErrorHandler extends 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 not showDevErrors. It is largely here to preserve binary compatibility, but should be overridden with an injected HttpErrorHandler.

Source
HttpErrorHandler.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultHttpErrorHandler
  2. DefaultHttpErrorHandler
  3. HttpErrorHandler
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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
    DefaultHttpErrorHandlerHttpErrorHandler
  2. 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 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.

    request

    The request that triggered the server error.

    exception

    The server error.

    Definition Classes
    DefaultHttpErrorHandlerHttpErrorHandler
  3. 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