Serializablepublic class ConstraintViolationException extends RuntimeException
| Modifier and Type | Field | 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 | Description |
|---|---|
ConstraintViolationException(String key,
Object offendngValue,
Annotation... annotations) |
Creates a new
ConstraintViolationException. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getMessage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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 © 2018 Carrot2.org. All rights reserved.