Serializablepublic 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 | Description |
|---|---|
IllegalCalendarFieldValueException(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.
|
getRuleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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 © 2019. All rights reserved.