ValidationRejection
org.apache.pekko.http.scaladsl.server.ValidationRejection
final case class ValidationRejection(message: String, cause: Option[Throwable]) extends ValidationRejection, RejectionWithOptionalCause
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.
Attributes
- Source
- Rejection.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Rejectiontrait ValidationRejectiontrait Rejectionclass Objecttrait Matchableclass Any
Members list
In this article