Packages

c

akka.http.scaladsl.server

ValidationRejection

final case class ValidationRejection(message: String, cause: Option[Throwable] = None) extends javadsl.server.ValidationRejection with RejectionWithOptionalCause with Product with Serializable

Rejection created by the validation directive as well as for IllegalArgumentExceptions thrown by domain model constructors (e.g. via require). It signals that an expected value was semantically invalid.

Source
Rejection.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidationRejection
  2. Serializable
  3. Product
  4. Equals
  5. RejectionWithOptionalCause
  6. Rejection
  7. ValidationRejection
  8. Rejection
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ValidationRejection(message: String, cause: Option[Throwable] = None)

Value Members

  1. val cause: Option[Throwable]
  2. final def getCause: Optional[Throwable]
    Definition Classes
    RejectionWithOptionalCause
  3. val message: String
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product