Package com.exedio.cope
Class CopyViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.exedio.cope.ConstraintViolationException
-
- com.exedio.cope.CopyViolationException
-
- All Implemented Interfaces:
Serializable
public final class CopyViolationException extends ConstraintViolationException
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getActualValue()
CopyConstraint
getAdditionalFeature()
Item
getAdditionalTargetItem()
Object
getExpectedValue()
CopyConstraint
getFeature()
Returns the field, that was attempted to be written.String
getMessage(boolean withFeature)
Item
getTargetItem()
-
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 Detail
-
getFeature
@Nonnull public CopyConstraint getFeature()
Returns the field, that was attempted to be written.- Specified by:
getFeature
in classConstraintViolationException
-
getAdditionalFeature
@Nullable public CopyConstraint getAdditionalFeature()
-
getExpectedValue
public Object getExpectedValue()
-
getActualValue
public Object getActualValue()
-
getMessage
public String getMessage(boolean withFeature)
- Specified by:
getMessage
in classConstraintViolationException
-
-