|
||||||||||
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 java.lang.IllegalArgumentException org.joda.time.IllegalFieldValueException
public class IllegalFieldValueException
Exception thrown when attempting to set a field outside its supported range.
Constructor Summary | |
---|---|
IllegalFieldValueException(DateTimeFieldType fieldType,
Number value,
Number lowerBound,
Number upperBound)
Constructor. |
|
IllegalFieldValueException(DateTimeFieldType fieldType,
Number value,
String explain)
Constructor. |
|
IllegalFieldValueException(DateTimeFieldType fieldType,
String value)
Constructor. |
|
IllegalFieldValueException(DurationFieldType fieldType,
Number value,
Number lowerBound,
Number upperBound)
Constructor. |
|
IllegalFieldValueException(DurationFieldType fieldType,
String value)
Constructor. |
|
IllegalFieldValueException(String fieldName,
Number value,
Number lowerBound,
Number upperBound)
Constructor. |
|
IllegalFieldValueException(String fieldName,
String value)
Constructor. |
Method Summary | |
---|---|
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. |
String |
getFieldName()
Returns the name of the field whose value was invalid. |
Number |
getIllegalNumberValue()
Returns the illegal integer value assigned to the field, or null if not applicable. |
String |
getIllegalStringValue()
Returns the illegal string value assigned to the field, or null if not applicable. |
String |
getIllegalValueAsString()
Returns the illegal value assigned to the field as a non-null string. |
Number |
getLowerBound()
Returns the lower bound of the legal value range, or null if not applicable. |
String |
getMessage()
|
Number |
getUpperBound()
Returns the upper bound of the legal value range, or null if not applicable. |
void |
prependMessage(String message)
Provide additional detail by prepending a message to the existing message. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, 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 IllegalFieldValueException(DateTimeFieldType fieldType, Number value, Number lowerBound, 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, Number value, String explain)
fieldType
- type of field being setvalue
- illegal value being setexplain
- an explanationpublic IllegalFieldValueException(DurationFieldType fieldType, Number value, Number lowerBound, 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(String fieldName, Number value, Number lowerBound, 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, String value)
fieldType
- type of field being setvalue
- illegal value being setpublic IllegalFieldValueException(DurationFieldType fieldType, String value)
fieldType
- type of field being setvalue
- illegal value being setpublic IllegalFieldValueException(String fieldName, String value)
fieldName
- name of field being setvalue
- illegal value being setMethod Detail |
---|
public DateTimeFieldType getDateTimeFieldType()
public DurationFieldType getDurationFieldType()
public String getFieldName()
public Number getIllegalNumberValue()
public String getIllegalStringValue()
public String getIllegalValueAsString()
public Number getLowerBound()
public Number getUpperBound()
public String getMessage()
getMessage
in class Throwable
public void prependMessage(String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |