Class ValidationRejection
java.lang.Object
org.apache.pekko.http.scaladsl.server.ValidationRejection
- All Implemented Interfaces:
Serializable,Rejection,ValidationRejection,Rejection,RejectionWithOptionalCause,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, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.scaladsl.server.RejectionWithOptionalCause
getCauseMethods inherited from interface org.apache.pekko.http.javadsl.server.ValidationRejection
getCause
-
Constructor Details
-
ValidationRejection
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2) -
toString
-
message
- Specified by:
messagein interfaceValidationRejection
-
cause
- Specified by:
causein interfaceRejectionWithOptionalCause
-