Package akka.http.scaladsl.server
Class ValidationRejection
- java.lang.Object
-
- akka.http.scaladsl.server.ValidationRejection
-
- All Implemented Interfaces:
Rejection
,ValidationRejection
,Rejection
,RejectionWithOptionalCause
,java.io.Serializable
,scala.Equals
,scala.Product
public final class ValidationRejection extends java.lang.Object implements ValidationRejection, RejectionWithOptionalCause, scala.Product, java.io.Serializable
Rejection created by thevalidation
directive as well as forIllegalArgumentExceptions
thrown by domain model constructors (e.g. viarequire
). It signals that an expected value was semantically invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationRejection(java.lang.String message, scala.Option<java.lang.Throwable> cause)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static R
apply(T1 v1, T2 v2)
scala.Option<java.lang.Throwable>
cause()
java.lang.String
message()
static java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2)
-
toString
public static java.lang.String toString()
-
message
public java.lang.String message()
- Specified by:
message
in interfaceValidationRejection
-
cause
public scala.Option<java.lang.Throwable> cause()
- Specified by:
cause
in interfaceRejectionWithOptionalCause
-
-