Package com.exedio.cope
Class ConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CheckViolationException,ColorAlphaViolationException,CopyViolationException,DataLengthViolationException,DatePrecisionViolationException,DateRangeViolationException,DayRangeViolationException,DoubleNaNException,FinalViolationException,Hash.InvalidPlainTextException,IllegalContentTypeException,IllegalCurrencyException,IntegrityViolationException,ListSizeViolationException,MandatoryViolationException,RangeViolationException,StringCharSetViolationException,StringLengthViolationException,UniqueViolationException
Is thrown, when a persistent modification violates a constraint.
- Author:
- Ralf Wiebicke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Featurefinal ItemgetItem()Returns the item that was attempted to be modified.final StringDeprecated.protected final Stringfinal StringDeprecated.UsegetItemPhrase()instead.final Stringprotected abstract StringgetMessage(boolean withFeature) final StringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConstraintViolationException
-
-
Method Details
-
getFeature
-
getItem
Returns the item that was attempted to be modified. Returns null, if the constraint violation occured on the creation of an item. -
getItemPhrase
-
getMessage
- Overrides:
getMessagein classThrowable
-
getMessageWithoutFeature
-
getMessage
-
getItemID
Deprecated.UsegetItemText()instead -
getItemText
Deprecated.UsegetItemPhrase()instead.
-
getItemText()instead