public class CalendricalRuleException extends CalendricalException
Constructor and Description |
---|
CalendricalRuleException(java.lang.String message,
CalendricalRule<?> fieldRule)
Constructs a new exception with a message and optional rule.
|
Modifier and Type | Method and Description |
---|---|
CalendricalRule<?> |
getRule()
Gets the rule that is connected to the exception.
|
public CalendricalRuleException(java.lang.String message, CalendricalRule<?> fieldRule)
message
- the message describing the problem, should not be nullfieldRule
- the rule of the field that is not supported, may be nullpublic CalendricalRule<?> getRule()