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
public class CalendricalRuleException extends CalendricalException
An exception used when an exception is connected to a specified rule.- Author:
- Stephen Colebourne
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CalendricalRuleException(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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CalendricalRuleException
public CalendricalRuleException(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
-
-