public class ConstraintViolationException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
Annotation[] |
annotations
Constraints that were not met by the
offendingValue. |
String |
key
Key of the involved
Attribute as defined in Attribute.key(). |
Object |
offendingValue
Value that does not meet the constraints.
|
| Constructor and Description |
|---|
ConstraintViolationException(String key,
Object offendngValue,
Annotation... annotations)
Creates a new
ConstraintViolationException. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final Object offendingValue
public final Annotation[] annotations
offendingValue.public final String key
Attribute as defined in Attribute.key().public ConstraintViolationException(String key, Object offendngValue, Annotation... annotations)
ConstraintViolationException.public String getMessage()
getMessage in class ThrowableCopyright © 2013 Carrot2.org. All Rights Reserved.