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.

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A serialization identifier for this class.
      See Also:
  • Constructor Details

    • 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