Class IllegalCalendarFieldValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.time.CalendricalException
javax.time.calendar.CalendricalRuleException
javax.time.calendar.IllegalCalendarFieldValueException
- All Implemented Interfaces:
Serializable
An exception used when a value specified for a calendrical field is out of range.
Most calendrical fields have a valid range of values. This exception is used when a value outside that range is passed in.
- Author:
- Michael Nascimento Santos, Stephen Colebourne
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIllegalCalendarFieldValueException(String message, DateTimeFieldRule<?> fieldRule) Constructs a new illegal field value exception with the specified message.IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule, long actual, int minValue, int maxValue) Constructs a new illegal field value exception with a standard message. -
Method Summary
Methods inherited from class CalendricalRuleException
getRuleMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalCalendarFieldValueException
public IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule, long actual, int minValue, int maxValue) Constructs a new illegal field value exception with a standard message.- Parameters:
fieldRule- the field rule, not nullactual- the actual invalid valueminValue- the minimum value allowedmaxValue- the maximum value allowed
-
IllegalCalendarFieldValueException
Constructs a new illegal field value exception with the specified message.- Parameters:
message- the message to use for this exception, may be nullfieldRule- the field rule, not null
-