public class ConstraintFailure
extends java.lang.Object
ConstraintEvaluator
.Constructor and Description |
---|
ConstraintFailure(java.lang.String name,
java.lang.String reason) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the constraint that was violated by the target.
|
java.lang.String |
getReason()
Returns a description of how the constraint was violated by the target.
|
java.lang.String |
toString()
Returns a textual description of the constraint failure that combines the name of the constraint and
the reason why it was violated by the target.
|
public ConstraintFailure(java.lang.String name, java.lang.String reason)
public java.lang.String getName()
public java.lang.String getReason()
public java.lang.String toString()
toString
in class java.lang.Object
ConstraintFailure