Package akka.http.scaladsl.server
Class RejectionError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- akka.http.scaladsl.server.RejectionError
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class RejectionError extends java.lang.RuntimeException implements scala.Product, java.io.Serializable
A Throwable wrapping a Rejection. Can be used for marshallingFuture[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.)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RejectionError(Rejection rejection)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static R
apply(T1 v1)
Rejection
rejection()
static java.lang.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-