final case class RejectionError(rejection: Rejection) extends RuntimeException 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.)
- Source
- Rejection.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RejectionError
- Serializable
- Product
- Equals
- RuntimeException
- Exception
- Throwable
- Serializable
- AnyRef
- Any
Implicitly
- by RichException
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
-
def
fillInStackTrace(): Throwable
- Definition Classes
- Throwable
-
def
getCause(): Throwable
- Definition Classes
- Throwable
-
def
getLocalizedMessage(): String
- Definition Classes
- Throwable
-
def
getMessage(): String
- Definition Classes
- Throwable
-
def
getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
-
final
def
getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
-
def
initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
-
def
printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(): Unit
- Definition Classes
- Throwable
- val rejection: Rejection
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
-
def
toString(): String
- Definition Classes
- Throwable → AnyRef → Any
Deprecated Value Members
-
def
getStackTraceString: String
- Implicit
- This member is added by an implicit conversion from RejectionError to RichException performed by method RichException in scala.Predef.
- Definition Classes
- RichException
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use Throwable#getStackTrace