Builder

pl.iterators.stir.server.RejectionHandler$.Builder
final class Builder

Attributes

Source
RejectionHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def handle(pf: PartialFunction[Rejection, Route]): Builder.this.type

Handles a single Rejection with the given partial function.

Handles a single Rejection with the given partial function.

Attributes

Source
RejectionHandler.scala
def handleAll[T <: Rejection : ClassTag](f: Seq[T] => Route): Builder.this.type

Handles several Rejections of the same type at the same time. The seq passed to the given function is guaranteed to be non-empty.

Handles several Rejections of the same type at the same time. The seq passed to the given function is guaranteed to be non-empty.

Attributes

Source
RejectionHandler.scala
def handleNotFound(route: Route): Builder.this.type

Handles the special "not found" case using the given Route.

Handles the special "not found" case using the given Route.

Attributes

Source
RejectionHandler.scala