Serializable
public class InvalidCalendarFieldException extends CalendricalRuleException
Some combinations of calendrical fields are not allowed, such as a month-of-year of April and a day-of-month of 31. This exception is used when an attempt is made to create such an invalid combination.
Constructor | Description |
---|---|
InvalidCalendarFieldException(String message,
CalendricalRule<?> rule) |
Constructs a new invalid field exception.
|
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 InvalidCalendarFieldException(String message, CalendricalRule<?> rule)
message
- the message describing the problem, should not be nullrule
- the rule that is invalid, may be nullCopyright © 2019. All rights reserved.