Package akka.http.scaladsl.server
Class ValidationRejection
java.lang.Object
akka.http.scaladsl.server.ValidationRejection
- All Implemented Interfaces:
Rejection
,ValidationRejection
,Rejection
,RejectionWithOptionalCause
,Serializable
,scala.Equals
,scala.Product
public final class ValidationRejection
extends Object
implements ValidationRejection, RejectionWithOptionalCause, scala.Product, 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.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
Methods inherited from interface akka.http.scaladsl.server.RejectionWithOptionalCause
getCause
Methods inherited from interface akka.http.javadsl.server.ValidationRejection
getCause
-
Constructor Details
-
ValidationRejection
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2) -
toString
-
message
- Specified by:
message
in interfaceValidationRejection
-
cause
- Specified by:
cause
in interfaceRejectionWithOptionalCause
-