Serializable
IllegalCalendarFieldValueException
, InvalidCalendarFieldException
, UnsupportedRuleException
public class CalendricalRuleException extends CalendricalException
Constructor | Description |
---|---|
CalendricalRuleException(String message,
CalendricalRule<?> fieldRule) |
Constructs a new exception with a message and optional rule.
|
Modifier and Type | Method | Description |
---|---|---|
CalendricalRule<?> |
getRule() |
Gets the rule that is connected to the exception.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CalendricalRuleException(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()
Copyright © 2019. All rights reserved.