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 Feature
final Item
getItem()
Returns the item that was attempted to be modified.final String
Deprecated.protected final String
final String
Deprecated.UsegetItemPhrase()
instead.final String
protected abstract String
getMessage
(boolean withFeature) final String
Methods 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:
getMessage
in classThrowable
-
getMessageWithoutFeature
-
getMessage
-
getItemID
Deprecated.UsegetItemText()
instead -
getItemText
Deprecated.UsegetItemPhrase()
instead.
-
getItemText()
instead