Package javax.time.calendar
Class UnsupportedRuleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.time.CalendricalException
-
- javax.time.calendar.CalendricalRuleException
-
- javax.time.calendar.UnsupportedRuleException
-
- All Implemented Interfaces:
Serializable
public class UnsupportedRuleException extends CalendricalRuleException
An exception used when the value for a rule cannot be found.- Author:
- Stephen Colebourne
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedRuleException(String message, CalendricalRule<?> rule)
Constructs a new unsupported field exception using the specified error message.UnsupportedRuleException(CalendricalRule<?> rule)
Constructs a new unsupported field exception creating a standard error message.
-
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
-
UnsupportedRuleException
public UnsupportedRuleException(CalendricalRule<?> rule)
Constructs a new unsupported field exception creating a standard error message.- Parameters:
rule
- the rule that is not supported, may be null
-
UnsupportedRuleException
public UnsupportedRuleException(String message, CalendricalRule<?> rule)
Constructs a new unsupported field exception using the specified error message.- Parameters:
message
- the error message, not nullrule
- the rule that is not supported, may be null
-
-