This exception includes the text being parsed and the error index.
Implementation Specification
This class is intended for use in a single thread.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private static final long | serialVersionUID
Serialization version.
|
| Access | Constructor and Description |
|---|---|
| public | DateTimeParseException(String
the message to use for this exception, may be null message, CharSequence the parsed text, should not be null parsedData, int the index in the parsed string that was invalid, should be a valid index errorIndex)Constructs a new exception with the specified message. |
| public | DateTimeParseException(String
the message to use for this exception, may be null message, CharSequence the parsed text, should not be null parsedData, int the index in the parsed string that was invalid, should be a valid index errorIndex, Throwable the cause exception, may be null cause)Constructs a new exception with the specified message and cause. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the index in the parsed string that was invalid, should be a valid indexReturns the index where the error was found. |
| public String | Returns: the string that was being parsed, should not be null.Returns the string that was being parsed. |
| errorIndex | back to summary |
|---|---|
| private final int errorIndex | |
| parsedString | back to summary |
|---|---|
| private final String parsedString | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Serialization version. | |
| DateTimeParseException | back to summary |
|---|---|
| public DateTimeParseException(String message, CharSequence parsedData, int errorIndex) Constructs a new exception with the specified message.
| |
| DateTimeParseException | back to summary |
|---|---|
| public DateTimeParseException(String message, CharSequence parsedData, int errorIndex, Throwable cause) Constructs a new exception with the specified message and cause.
| |
| getErrorIndex | back to summary |
|---|---|
| public int getErrorIndex() Returns the index where the error was found.
| |
| getParsedString | back to summary |
|---|---|
| public String getParsedString() Returns the string that was being parsed.
| |