Package javax.time.calendar
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
A serialization identifier for this class. -
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 javax.time.calendar.CalendricalRuleException
getRule
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDA serialization identifier for this class.- See Also:
-
-
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
-