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:
java.io.Serializable
- Direct Known Subclasses:
IllegalCalendarFieldValueException
,InvalidCalendarFieldException
,UnsupportedRuleException
public class CalendricalRuleException extends CalendricalException
An exception used when an exception is connected to a specified rule.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CalendricalRule<?>
rule
The rule that caused the exception.private static long
serialVersionUID
A serialization identifier for this class.
-
Constructor Summary
Constructors Constructor Description CalendricalRuleException(java.lang.String message, CalendricalRule<?> fieldRule)
Constructs a new exception with a message and optional rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalendricalRule<?>
getRule()
Gets the rule that is connected to the exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
A serialization identifier for this class.- See Also:
- Constant Field Values
-
rule
private final CalendricalRule<?> rule
The rule that caused the exception.
-
-
Constructor Detail
-
CalendricalRuleException
public CalendricalRuleException(java.lang.String message, CalendricalRule<?> fieldRule)
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 Detail
-
getRule
public CalendricalRule<?> getRule()
Gets the rule that is connected to the exception.- Returns:
- the field rule, null if unknown
-
-