| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | data
The original input data. |
| private int | position
The zero-based character position in the string being parsed at which the error was found while parsing. |
| private static final long | serialVersionUID
For cross-version compatibility.
|
| Access | Constructor and Description |
|---|---|
| public | MeasurementParseException(String
the detail message message, CharSequence the parsed text, should not be null parsedData, int the position where the error was found while parsing. position)Constructs a MeasurementParseException with the specified detail message, parsed text and index. |
| public | MeasurementParseException(CharSequence
the parsed text, should not be null parsedData, int the position where the error is found while parsing. position)Constructs a MeasurementParseException with the parsed text and offset. |
| public | MeasurementParseException(Throwable
the root cause cause)Constructs a MeasurementParseException with the specified cause. |
| public | MeasurementParseException(String
the detail message message)Constructs a MeasurementParseException with the specified detail message. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the parsed string, ornull, if null was passed as input.Returns the string that was being parsed. |
| public int |
| data | back to summary |
|---|---|
| private CharSequence data The original input data. | |
| position | back to summary |
|---|---|
| private int position The zero-based character position in the string being parsed at which the error was found while parsing. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. For cross-version compatibility. | |
| MeasurementParseException | back to summary |
|---|---|
| public MeasurementParseException(String message, CharSequence parsedData, int position) Constructs a MeasurementParseException with the specified detail message, parsed text and index. A detail message is a String that describes this particular exception.
| |
| MeasurementParseException | back to summary |
|---|---|
| public MeasurementParseException(CharSequence parsedData, int position) Constructs a MeasurementParseException with the parsed text and offset. A detail message is a String that describes this particular exception.
| |
| MeasurementParseException | back to summary |
|---|---|
| public MeasurementParseException(Throwable cause) Constructs a MeasurementParseException with the specified cause.
| |
| MeasurementParseException | back to summary |
|---|---|
| public MeasurementParseException(String message) Constructs a MeasurementParseException with the specified detail message.
| |
| getParsedString | back to summary |
|---|---|
| public String getParsedString() Returns the string that was being parsed.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Returns the position where the error was found.
| |