Class IllegalCalendarFieldValueException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      A serialization identifier for this class.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        A serialization identifier for this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.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