Package javax.time.calendar
Class CalendricalRuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.time.CalendricalException
javax.time.calendar.CalendricalRuleException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalCalendarFieldValueException
,InvalidCalendarFieldException
,UnsupportedRuleException
An exception used when an exception is connected to a specified rule.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CalendricalRule
<?> The rule that caused the exception.private static final long
A serialization identifier for this class. -
Constructor Summary
ConstructorsConstructorDescriptionCalendricalRuleException
(String message, CalendricalRule<?> fieldRule) Constructs a new exception with a message and optional rule. -
Method Summary
Methods inherited from class java.lang.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:
-
rule
The rule that caused the exception.
-
-
Constructor Details
-
CalendricalRuleException
Constructs a new exception with a message and optional rule.- Parameters:
message
- the message describing the problem, should not be nullfieldRule
- the rule of the field that is not supported, may be null
-
-
Method Details
-
getRule
Gets the rule that is connected to the exception.- Returns:
- the field rule, null if unknown
-