Package javax.time.calendar
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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
A serialization identifier for this class.
-
Constructor Summary
Constructors Constructor Description InvalidCalendarFieldException(java.lang.String message, CalendricalRule<?> rule)
Constructs a new invalid field exception.
-
Method Summary
-
Methods inherited from class javax.time.calendar.CalendricalRuleException
getRule
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
A serialization identifier for this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InvalidCalendarFieldException
public InvalidCalendarFieldException(java.lang.String message, CalendricalRule<?> rule)
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
-
-