SerializableParserExceptionpublic class MeasurementParseException extends MeasurementException
| Constructor | Description |
|---|---|
MeasurementParseException(CharSequence parsedData,
int position) |
Constructs a MeasurementParseException with the parsed text and offset.
|
MeasurementParseException(String message) |
Constructs a MeasurementParseException with the specified detail message.
|
MeasurementParseException(String message,
CharSequence parsedData,
int position) |
Constructs a MeasurementParseException with the specified detail message, parsed text and index.
|
MeasurementParseException(Throwable cause) |
Constructs a MeasurementParseException with the specified cause.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getParsedString() |
Returns the string that was being parsed.
|
int |
getPosition() |
Returns the position where the error was found.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MeasurementParseException(String message, CharSequence parsedData, int position)
message - the detail messageparsedData - the parsed text, should not be nullposition - the position where the error was found while parsing.public MeasurementParseException(CharSequence parsedData, int position)
parsedData - the parsed text, should not be nullposition - the position where the error is found while parsing.public MeasurementParseException(Throwable cause)
cause - the root causepublic MeasurementParseException(String message)
message - the detail messagepublic int getPosition()
public String getParsedString()
null, if null was passed as input.Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.