Package com.exedio.cope
Class IntegrityViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.IntegrityViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to delete an item has been failed,
because some other item point to that item with some
item field
.
Also knows as foreign key constraint violation.
This exception is thrown by Item.deleteCopeItem()
.
- Author:
- Ralf Wiebicke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionItemField<?>
Deprecated.ItemField<?>
Returns the item field, for which the integrity (foreign key) constraint has been violated.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 item field, for which the integrity (foreign key) constraint has been violated. Returns null, if the violated constraint is unknown.- Specified by:
getFeature
in classConstraintViolationException
-
getMessage
- Specified by:
getMessage
in classConstraintViolationException
-
getAttribute
Deprecated.Renamed togetFeature()
.
-
getFeature()
.