public class CalendricalPrintFieldException extends CalendricalPrintException
Constructor and Description |
---|
CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule,
int value)
Constructs a new exception creating a standard error message for
unable to print a negative value.
|
CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule,
int value,
int maxWidth)
Constructs a new exception creating a standard error message for
exceeding padding width.
|
CalendricalPrintFieldException(java.lang.String msg,
DateTimeFieldRule<?> fieldRule,
int value)
Constructs a new exception using the specified message.
|
CalendricalPrintFieldException(UnsupportedRuleException cause)
Constructs a new exception wrapping the unsupported field exception.
|
Modifier and Type | Method and Description |
---|---|
CalendricalRule<?> |
getRule()
Gets the rule that caused the exception.
|
java.lang.Integer |
getValue()
Gets the value of the field that caused the exception.
|
rethrowIOException
public CalendricalPrintFieldException(UnsupportedRuleException cause)
cause
- the exception cause, may be nullpublic CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule, int value)
fieldRule
- the rule of the field that caused the exception, may be nullvalue
- the value of the field that caused the exceptionpublic CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule, int value, int maxWidth)
fieldRule
- the rule of the field that caused the exception, may be nullvalue
- the value of the field that caused the exceptionmaxWidth
- the maximum print widthpublic CalendricalPrintFieldException(java.lang.String msg, DateTimeFieldRule<?> fieldRule, int value)
fieldRule
- the rule of the field that caused the exception, may be nullvalue
- the value of the field that caused the exceptionpublic CalendricalRule<?> getRule()
public java.lang.Integer getValue()