JavaHttpErrorHandlerAdapter

play.core.j.JavaHttpErrorHandlerAdapter
class JavaHttpErrorHandlerAdapter(underlying: HttpErrorHandler) extends HttpErrorHandler

Adapter from a Java HttpErrorHandler to a Scala HttpErrorHandler

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Deprecated constructors

def this(underlying: HttpErrorHandler, contextComponents: JavaContextComponents)

Attributes

Deprecated
true

Concrete methods

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.

Value parameters

message

The error message.

request

The request that caused the client error.

statusCode

The error status code. Must be greater or equal to 400, and less than 500.

Attributes

def onServerError(request: RequestHeader, exception: Throwable): Future[Result]

Invoked when a server error occurs.

Invoked when a server error occurs.

Value parameters

exception

The server error.

request

The request that triggered the server error.

Attributes