ErrorHandler

scamper.http.server.ErrorHandler
See theErrorHandler companion object
@FunctionalInterface
trait ErrorHandler

Defines utility for handling error during request processing.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

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

Creates response for error generated while processing given request.

Creates response for error generated while processing given request.

Value parameters

request

request for which error was generated

Attributes

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 parameters

other

initial handler

Attributes

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 parameters

other

fallback handler

Attributes