public final class RejectionError
extends java.lang.RuntimeException
implements scala.Product, java.io.Serializable
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.)Constructor and Description |
---|
RejectionError(Rejection rejection) |
Modifier and Type | Method and Description |
---|---|
abstract static R |
apply(T1 v1) |
Rejection |
rejection() |
static java.lang.String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait