Serializable
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 | 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.
|
getRule
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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.