Package com.exedio.cope
Class UniqueViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.UniqueViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to write an field has been failed,
and the value to be set violated a unique constraint.
This exception will be thrown by
Item.set
and item constructors
if that field is covered by a unique constraint
and the value to be set violated the uniqueness.- Author:
- Ralf Wiebicke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the violated constraint.List<FunctionField<?>>getMessage(boolean withFeature) Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeatureMethods 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:
getFeaturein classConstraintViolationException
-
getFeatureForDescription
-
getFields
-
getConstraint
Deprecated.Renamed togetFeature(). -
getMessage
- Specified by:
getMessagein classConstraintViolationException
-
getFeature().