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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.scaladsl.server.RejectionWithOptionalCausegetCauseMethods inherited from interface org.apache.pekko.http.javadsl.server.ValidationRejectiongetCause
- 
Constructor Details- 
ValidationRejection
 
- 
- 
Method Details- 
applypublic abstract static R apply(T1 v1, T2 v2) 
- 
toString
- 
message- Specified by:
- messagein interface- ValidationRejection
 
- 
cause- Specified by:
- causein interface- RejectionWithOptionalCause
 
 
-