|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.carrot2.util.attribute.constraint.ConstraintViolationException
public class ConstraintViolationException
An exception thrown when an attempt is made to bind attribute values that do not meet the constraints.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ConstraintViolationException(String key,
Object offendngValue,
Annotation... annotations)
Creates a new ConstraintViolationException. |
|
| Method Summary | |
|---|---|
String |
getMessage()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Object offendingValue
public final Annotation[] annotations
offendingValue.
public final String key
Attribute as defined in Attribute.key().
| Constructor Detail |
|---|
public ConstraintViolationException(String key,
Object offendngValue,
Annotation... annotations)
ConstraintViolationException.
| Method Detail |
|---|
public String getMessage()
getMessage in class Throwable
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||