Packages

final class Builder extends AnyRef

Source
RejectionHandler.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

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

    Handles a single Rejection with the given partial function.

  2. def handleAll[T <: Rejection](f: (Seq[T]) => Route)(implicit arg0: ClassTag[T]): Builder.this.type

    Handles several Rejections of the same type at the same time.

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

  3. def handleCircuitBreakerOpenRejection(handler: (CircuitBreakerOpenRejection) => Route): Builder.this.type

    Convenience method for handling rejections created by the onCompleteWithBreaker directive.

    Convenience method for handling rejections created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

    Use to customise the error response being written instead of the default ServiceUnavailable response.

  4. def handleNotFound(route: Route): Builder.this.type

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

  5. def result(): RejectionHandler