Class InvalidCalendarFieldException

  • All Implemented Interfaces:
    Serializable

    public class InvalidCalendarFieldException
    extends CalendricalRuleException
    An exception used when a calendrical field is invalid.

    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.

    Author:
    Stephen Colebourne
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidCalendarFieldException

        public InvalidCalendarFieldException​(String message,
                                             CalendricalRule<?> rule)
        Constructs a new invalid field exception.
        Parameters:
        message - the message describing the problem, should not be null
        rule - the rule that is invalid, may be null