Serializablepublic class CalendricalPrintFieldException extends CalendricalPrintException
| Constructor | Description |
|---|---|
CalendricalPrintFieldException(String msg,
DateTimeFieldRule<?> fieldRule,
int value) |
Constructs a new exception using the specified message.
|
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(UnsupportedRuleException cause) |
Constructs a new exception wrapping the unsupported field exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
CalendricalRule<?> |
getRule() |
Gets the rule that caused the exception.
|
Integer |
getValue() |
Gets the value of the field that caused the exception.
|
rethrowIOExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 © 2019. All rights reserved.