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(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.
|
Integer |
getValue()
Gets the value of the field that caused the exception.
|
rethrowIOException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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(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 Integer getValue()
Copyright © 2014. All rights reserved.