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:
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.
- Author:
- Stephen Colebourne
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidCalendarFieldException(String message, CalendricalRule<?> rule)
Constructs a new invalid field exception.
-
Method Summary
-
Methods inherited from class javax.time.calendar.CalendricalRuleException
getRule
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidCalendarFieldException
public InvalidCalendarFieldException(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
-
-