|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.joda.time.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,
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. |
Number |
getUpperBound()
Returns the upper bound of the legal value range, or null if not applicable. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, 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 applicable
public 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 applicable
public 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 applicable
public IllegalFieldValueException(DateTimeFieldType fieldType,
String value)
fieldType - type of field being setvalue - illegal value being set
public IllegalFieldValueException(DurationFieldType fieldType,
String value)
fieldType - type of field being setvalue - illegal value being set
public IllegalFieldValueException(String fieldName,
String value)
fieldName - name of field being setvalue - illegal value being set| Method 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()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||