| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.IllegalArgumentException org.joda.time.IllegalFieldValueException
IllegalFieldValueException | public class IllegalFieldValueException extends IllegalArgumentException (Code) | | Exception thrown when attempting to set a field outside its supported range.
author: Brian S O'Neill since: 1.1 |
Constructor Summary | |
public | IllegalFieldValueException(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound) Constructor. | public | IllegalFieldValueException(DateTimeFieldType fieldType, Number value, String explain) Constructor. | public | IllegalFieldValueException(DurationFieldType fieldType, Number value, Number lowerBound, Number upperBound) Constructor. | public | IllegalFieldValueException(String fieldName, Number value, Number lowerBound, Number upperBound) Constructor. | public | IllegalFieldValueException(DateTimeFieldType fieldType, String value) Constructor. | public | IllegalFieldValueException(DurationFieldType fieldType, String value) Constructor. | public | IllegalFieldValueException(String fieldName, String value) Constructor. |
IllegalFieldValueException | public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, Number lowerBound, Number upperBound)(Code) | | Constructor.
Parameters: fieldType - type of field being set Parameters: value - illegal value being set Parameters: lowerBound - lower legal field value, or null if not applicable Parameters: upperBound - upper legal field value, or null if not applicable |
IllegalFieldValueException | public IllegalFieldValueException(DateTimeFieldType fieldType, Number value, String explain)(Code) | | Constructor.
Parameters: fieldType - type of field being set Parameters: value - illegal value being set Parameters: explain - an explanation since: 1.5 |
IllegalFieldValueException | public IllegalFieldValueException(DurationFieldType fieldType, Number value, Number lowerBound, Number upperBound)(Code) | | Constructor.
Parameters: fieldType - type of field being set Parameters: value - illegal value being set Parameters: lowerBound - lower legal field value, or null if not applicable Parameters: upperBound - upper legal field value, or null if not applicable |
IllegalFieldValueException | public IllegalFieldValueException(String fieldName, Number value, Number lowerBound, Number upperBound)(Code) | | Constructor.
Parameters: fieldName - name of field being set Parameters: value - illegal value being set Parameters: lowerBound - lower legal field value, or null if not applicable Parameters: upperBound - upper legal field value, or null if not applicable |
IllegalFieldValueException | public IllegalFieldValueException(DateTimeFieldType fieldType, String value)(Code) | | Constructor.
Parameters: fieldType - type of field being set Parameters: value - illegal value being set |
IllegalFieldValueException | public IllegalFieldValueException(DurationFieldType fieldType, String value)(Code) | | Constructor.
Parameters: fieldType - type of field being set Parameters: value - illegal value being set |
IllegalFieldValueException | public IllegalFieldValueException(String fieldName, String value)(Code) | | Constructor.
Parameters: fieldName - name of field being set Parameters: value - illegal value being set |
getDateTimeFieldType | public DateTimeFieldType getDateTimeFieldType()(Code) | | Returns the DateTimeFieldType whose value was invalid, or null if not applicable.
the datetime field type |
getDurationFieldType | public DurationFieldType getDurationFieldType()(Code) | | Returns the DurationFieldType whose value was invalid, or null if not applicable.
the duration field type |
getFieldName | public String getFieldName()(Code) | | Returns the name of the field whose value was invalid.
the field name |
getIllegalNumberValue | public Number getIllegalNumberValue()(Code) | | Returns the illegal integer value assigned to the field, or null if not applicable.
the value |
getIllegalStringValue | public String getIllegalStringValue()(Code) | | Returns the illegal string value assigned to the field, or null if not applicable.
the value |
getIllegalValueAsString | public String getIllegalValueAsString()(Code) | | Returns the illegal value assigned to the field as a non-null string.
the value |
getLowerBound | public Number getLowerBound()(Code) | | Returns the lower bound of the legal value range, or null if not applicable.
the lower bound |
getUpperBound | public Number getUpperBound()(Code) | | Returns the upper bound of the legal value range, or null if not applicable.
the upper bound |
prependMessage | public void prependMessage(String message)(Code) | | Provide additional detail by prepending a message to the existing message.
A colon is separator is automatically inserted between the messages.
since: 1.3 |
|
|