|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.time.CalendricalException javax.time.calendar.CalendricalRuleException
public class CalendricalRuleException
An exception used when an exception is connected to a specified rule.
Many aspects of calendrical processing are rule based. When a rule is the trigger for an exception, the rule field should be populated.
Constructor Summary | |
---|---|
CalendricalRuleException(java.lang.String message,
CalendricalRule<?> rule)
Constructs a new exception with a message and optional rule. |
|
CalendricalRuleException(java.lang.String message,
CalendricalRule<?> rule,
java.lang.Throwable cause)
Constructs a new exception with a message and optional rule. |
Method Summary | |
---|---|
CalendricalRule<?> |
getRule()
Gets the rule that is connected to the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CalendricalRuleException(java.lang.String message, CalendricalRule<?> rule)
message
- the message describing the problem, should not be nullrule
- the rule that caused the exception, null if not caused by a specific rulepublic CalendricalRuleException(java.lang.String message, CalendricalRule<?> rule, java.lang.Throwable cause)
message
- the message describing the problem, should not be nullrule
- the rule that caused the exception, null if not caused by a specific rulecause
- the cause of the exception, may be nullMethod Detail |
---|
public CalendricalRule<?> getRule()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |