Package com.exedio.cope
Class DatePrecisionViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.exedio.cope.ConstraintViolationException
com.exedio.cope.DatePrecisionViolationException
- All Implemented Interfaces:
Serializable
Signals, that an attempt to write a
date field has been failed,
because the value to be written violated the precision 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) Returns the precision the value was too precise for.getValue()Returns the value, that was attempted to be written.Returns a value allowed for the field and as close as possible tothe value attempted to be writtenthe future.Returns a value allowed for the field and as close as possible tothe value attempted to be writtenthe past.Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeatureMethods 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:
getFeaturein classConstraintViolationException
-
getPrecision
Returns the precision the value was too precise for. -
getValue
Returns the value, that was attempted to be written. -
getValueAllowedInPast
Returns a value allowed for the field and as close as possible tothe value attempted to be writtenthe past. -
getValueAllowedInFuture
Returns a value allowed for the field and as close as possible tothe value attempted to be writtenthe future. -
getMessage
- Specified by:
getMessagein classConstraintViolationException
-