Package com.exedio.cope
Class StringLengthViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.StringLengthViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to write a
string field
has been failed,
because value to be written violated the length constraint on that field.
This exception will be thrown by FunctionField.set(Item,Object)
and item constructors.- Author:
- Ralf Wiebicke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringLengthViolationException
(StringField feature, Item item, String value, boolean isTooShort, int border) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns the field, that was attempted to be written.getMessage
(boolean withFeature) Deprecated.Renamed togetFeature()
.getValue()
Returns the value, that was attempted to be written.boolean
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
-
Constructor Details
-
StringLengthViolationException
@Deprecated public StringLengthViolationException(StringField feature, Item item, String value, boolean isTooShort, int border) Deprecated.UseStringLengthViolationException(StringField, Item, String)
instead.
-
-
Method Details
-
getFeature
Returns the field, that was attempted to be written.- Specified by:
getFeature
in classConstraintViolationException
-
getValue
Returns the value, that was attempted to be written. -
isTooShort
public boolean isTooShort() -
getMessage
- Specified by:
getMessage
in classConstraintViolationException
-
getStringAttribute
Deprecated.Renamed togetFeature()
.
-
StringLengthViolationException(StringField, Item, String)
instead.