public class IllegalCalendarFieldValueException extends CalendricalRuleException
Most calendrical fields have a valid range of values. This exception is used when a value outside that range is passed in.
| Constructor and Description |
|---|
IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule,
long actual,
int minValue,
int maxValue)
Constructs a new illegal field value exception with a standard message.
|
IllegalCalendarFieldValueException(String message,
DateTimeFieldRule<?> fieldRule)
Constructs a new illegal field value exception with the specified message.
|
getRuleaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule, long actual, int minValue, int maxValue)
fieldRule - the field rule, not nullactual - the actual invalid valueminValue - the minimum value allowedmaxValue - the maximum value allowedpublic IllegalCalendarFieldValueException(String message, DateTimeFieldRule<?> fieldRule)
message - the message to use for this exception, may be nullfieldRule - the field rule, not nullCopyright © 2025. All rights reserved.