Package com.exedio.cope.pattern
Class ListSizeViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.pattern.ListSizeViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to write a
list field
has been failed,
because value to be written violated the size constraint on that field.
This exception will be thrown by FunctionField.set(Item,Object)
and item constructors.- Author:
- Ralf Wiebicke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field, that was attempted to be written.getMessage
(boolean withFeature) int
getSize()
Returns the size of the value, that was attempted to be written.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 field, that was attempted to be written.- Specified by:
getFeature
in classConstraintViolationException
-
getSize
public int getSize()Returns the size of the value, that was attempted to be written. -
getMessage
- Specified by:
getMessage
in classConstraintViolationException
-