Package com.exedio.cope
Class StringCharSetViolationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.exedio.cope.ConstraintViolationException
-
- com.exedio.cope.StringCharSetViolationException
-
- All Implemented Interfaces:
Serializable
public final class StringCharSetViolationException extends ConstraintViolationException
Signals, that an attempt to write astring field
has been failed, because value to be written violated the character set constraint on that field. This exception will be thrown byFunctionField.set(Item,Object)
and item constructors.- Author:
- Ralf Wiebicke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getCharacter()
StringField
getFeature()
Returns the field, that was attempted to be written.String
getMessage(boolean withFeature)
int
getPosition()
String
getValue()
Returns 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 Detail
-
getFeature
public StringField getFeature()
Returns the field, that was attempted to be written.- Specified by:
getFeature
in classConstraintViolationException
-
getValue
public String getValue()
Returns the value, that was attempted to be written.
-
getCharacter
public char getCharacter()
-
getPosition
public int getPosition()
-
getMessage
public String getMessage(boolean withFeature)
- Specified by:
getMessage
in classConstraintViolationException
-
-