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:
java.io.Serializable
public class IllegalCalendarFieldValueException extends CalendricalRuleException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
A serialization identifier for this class.
-
Constructor Summary
Constructors Constructor Description IllegalCalendarFieldValueException(java.lang.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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
A serialization identifier for this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public IllegalCalendarFieldValueException(java.lang.String message, DateTimeFieldRule<?> fieldRule)
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
-
-