ErrorHandler

@FunctionalInterface

Defines utility for handling error during request processing.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(request: HttpRequest): PartialFunction[Throwable, HttpResponse]

Creates response for given error.

Creates response for given error.

Value Params
request

request for which error was generated

Concrete methods

Creates composite handler by applying this after other.

Creates composite handler by applying this after other.

If other is not defined, then error is applied to this.

Value Params
other

initial handler

Creates composite handler by applying this before other.

Creates composite handler by applying this before other.

If this is not defined, then error is applied to other.

Value Params
other

fallback handler