Class InvalidCalendarFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.time.CalendricalException
javax.time.calendar.CalendricalRuleException
javax.time.calendar.InvalidCalendarFieldException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final longA serialization identifier for this class. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidCalendarFieldException(String message, CalendricalRule<?> rule) Constructs a new invalid field exception. -
Method Summary
Methods inherited from class CalendricalRuleException
getRuleMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDA serialization identifier for this class.- See Also:
-
-
Constructor Details
-
InvalidCalendarFieldException
Constructs a new invalid field exception.- Parameters:
message- the message describing the problem, should not be nullrule- the rule that is invalid, may be null
-