Class RejectionError

All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class RejectionError extends RuntimeException implements scala.Product, Serializable
A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)
See Also:
  • Constructor Details

    • RejectionError

      public RejectionError(Rejection rejection)
  • Method Details

    • apply

      public abstract static R apply(T1 v1)
    • toString

      public static String toString()
    • rejection

      public Rejection rejection()