Class IllegalCalendarFieldValueException

All Implemented Interfaces:
Serializable

public class IllegalCalendarFieldValueException extends CalendricalRuleException
An exception used when a value specified for a calendrical field is out of range.

Most calendrical fields have a valid range of values. This exception is used when a value outside that range is passed in.

See Also:
  • Field Details

    • serialVersionUID

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

    • IllegalCalendarFieldValueException

      public IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule, long actual, int minValue, int maxValue)
      Constructs a new illegal field value exception with a standard message.
      Parameters:
      fieldRule - the field rule, not null
      actual - the actual invalid value
      minValue - the minimum value allowed
      maxValue - the maximum value allowed
    • IllegalCalendarFieldValueException

      public IllegalCalendarFieldValueException(String message, DateTimeFieldRule<?> fieldRule)
      Constructs a new illegal field value exception with the specified message.
      Parameters:
      message - the message to use for this exception, may be null
      fieldRule - the field rule, not null