case classRejectionError(rejection: Rejection) extends Throwable with Product with 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.)
Linear Supertypes
Serializable, Product, Equals, Throwable, Serializable, AnyRef, Any
A Throwable wrapping a Rejection. Can be used for marshalling
Future[T]
orTry[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.)