Class RejectionError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.pekko.http.scaladsl.server.RejectionError
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
RejectionError
 
- 
- 
Method Details- 
applypublic abstract static R apply(T1 v1) 
- 
toString
- 
rejection
 
-