|
exedio cope | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.UniqueViolationException
public final class UniqueViolationException
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.
| Method Summary | |
|---|---|
UniqueConstraint |
getConstraint()
Deprecated. Renamed to getFeature(). |
UniqueConstraint |
getFeature()
Returns the violated constraint. |
String |
getMessage(boolean withFeature)
|
| Methods inherited from class com.exedio.cope.ConstraintViolationException |
|---|
getItem, getItemID, getItemText, getMessage, getMessageWithoutFeature |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public UniqueConstraint getFeature()
getFeature in class ConstraintViolationException@Deprecated public UniqueConstraint getConstraint()
getFeature().
public String getMessage(boolean withFeature)
getMessage in class ConstraintViolationException
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||