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 and Description |
---|
InvalidCalendarFieldException(java.lang.String message,
CalendricalRule<?> rule)
Constructs a new invalid field exception.
|
getRule
public InvalidCalendarFieldException(java.lang.String message, CalendricalRule<?> rule)
message
- the message describing the problem, should not be nullrule
- the rule that is invalid, may be null