public class IllegalFieldValueException
extends java.lang.IllegalArgumentException
Constructor and Description |
---|
IllegalFieldValueException(DateTimeFieldType fieldType,
java.lang.Number value,
java.lang.Number lowerBound,
java.lang.Number upperBound)
Constructor.
|
IllegalFieldValueException(DateTimeFieldType fieldType,
java.lang.Number value,
java.lang.String explain)
Constructor.
|
IllegalFieldValueException(DateTimeFieldType fieldType,
java.lang.String value)
Constructor.
|
IllegalFieldValueException(DurationFieldType fieldType,
java.lang.Number value,
java.lang.Number lowerBound,
java.lang.Number upperBound)
Constructor.
|
IllegalFieldValueException(DurationFieldType fieldType,
java.lang.String value)
Constructor.
|
IllegalFieldValueException(java.lang.String fieldName,
java.lang.Number value,
java.lang.Number lowerBound,
java.lang.Number upperBound)
Constructor.
|
IllegalFieldValueException(java.lang.String fieldName,
java.lang.String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DateTimeFieldType |
getDateTimeFieldType()
Returns the DateTimeFieldType whose value was invalid, or null if not applicable.
|
DurationFieldType |
getDurationFieldType()
Returns the DurationFieldType whose value was invalid, or null if not applicable.
|
java.lang.String |
getFieldName()
Returns the name of the field whose value was invalid.
|
java.lang.Number |
getIllegalNumberValue()
Returns the illegal integer value assigned to the field, or null if not applicable.
|
java.lang.String |
getIllegalStringValue()
Returns the illegal string value assigned to the field, or null if not applicable.
|
java.lang.String |
getIllegalValueAsString()
Returns the illegal value assigned to the field as a non-null string.
|
java.lang.Number |
getLowerBound()
Returns the lower bound of the legal value range, or null if not applicable.
|
java.lang.String |
getMessage() |
java.lang.Number |
getUpperBound()
Returns the upper bound of the legal value range, or null if not applicable.
|
void |
prependMessage(java.lang.String message)
Provide additional detail by prepending a message to the existing message.
|
public IllegalFieldValueException(DateTimeFieldType fieldType, java.lang.Number value, java.lang.Number lowerBound, java.lang.Number upperBound)
fieldType
- type of field being setvalue
- illegal value being setlowerBound
- lower legal field value, or null if not applicableupperBound
- upper legal field value, or null if not applicablepublic IllegalFieldValueException(DateTimeFieldType fieldType, java.lang.Number value, java.lang.String explain)
fieldType
- type of field being setvalue
- illegal value being setexplain
- an explanationpublic IllegalFieldValueException(DurationFieldType fieldType, java.lang.Number value, java.lang.Number lowerBound, java.lang.Number upperBound)
fieldType
- type of field being setvalue
- illegal value being setlowerBound
- lower legal field value, or null if not applicableupperBound
- upper legal field value, or null if not applicablepublic IllegalFieldValueException(java.lang.String fieldName, java.lang.Number value, java.lang.Number lowerBound, java.lang.Number upperBound)
fieldName
- name of field being setvalue
- illegal value being setlowerBound
- lower legal field value, or null if not applicableupperBound
- upper legal field value, or null if not applicablepublic IllegalFieldValueException(DateTimeFieldType fieldType, java.lang.String value)
fieldType
- type of field being setvalue
- illegal value being setpublic IllegalFieldValueException(DurationFieldType fieldType, java.lang.String value)
fieldType
- type of field being setvalue
- illegal value being setpublic IllegalFieldValueException(java.lang.String fieldName, java.lang.String value)
fieldName
- name of field being setvalue
- illegal value being setpublic DateTimeFieldType getDateTimeFieldType()
public DurationFieldType getDurationFieldType()
public java.lang.String getFieldName()
public java.lang.Number getIllegalNumberValue()
public java.lang.String getIllegalStringValue()
public java.lang.String getIllegalValueAsString()
public java.lang.Number getLowerBound()
public java.lang.Number getUpperBound()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void prependMessage(java.lang.String message)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"