Package com.exedio.cope
Class CheckViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.CheckViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to write an field has been failed,
and the value to be set violated a check constraint.
This exception will be thrown by
Item.set
and item constructors
if that field is covered by a check constraint
and the value to be set violated the constraint.- Author:
- Ralf Wiebicke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the violated constraint.getMessage
(boolean withFeature) Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeature
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getFeature
Returns the violated constraint.- Specified by:
getFeature
in classConstraintViolationException
-
getMessage
- Specified by:
getMessage
in classConstraintViolationException
-