public final class ValidationRejection extends java.lang.Object implements ValidationRejection, RejectionWithOptionalCause, scala.Product, java.io.Serializable
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.Constructor and Description |
---|
ValidationRejection(java.lang.String message,
scala.Option<java.lang.Throwable> cause) |
Modifier and Type | Method and Description |
---|---|
abstract static R |
apply(T1 v1,
T2 v2) |
scala.Option<java.lang.Throwable> |
cause() |
java.lang.String |
message() |
static java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCause
getCause
public ValidationRejection(java.lang.String message, scala.Option<java.lang.Throwable> cause)
public abstract static R apply(T1 v1, T2 v2)
public static java.lang.String toString()
public java.lang.String message()
message
in interface ValidationRejection
public scala.Option<java.lang.Throwable> cause()
cause
in interface RejectionWithOptionalCause