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
public final class CheckViolationException extends ConstraintViolationException
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 byItem.set
and item constructors if that field is covered by acheck constraint
and the value to be set violated the constraint.- Author:
- Ralf Wiebicke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckConstraint
getFeature()
Returns the violated constraint.String
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 Detail
-
getFeature
public CheckConstraint getFeature()
Returns the violated constraint.- Specified by:
getFeature
in classConstraintViolationException
-
getMessage
public String getMessage(boolean withFeature)
- Specified by:
getMessage
in classConstraintViolationException
-
-