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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidationRejection
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RejectionWithOptionalCause
  7. Rejection
  8. ValidationRejection
  9. Rejection
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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