public class MeasurementParseException extends MeasurementException
| Constructor and Description |
|---|
MeasurementParseException(java.lang.CharSequence parsedData,
int position)
Constructs a MeasurementParseException with the parsed text and offset.
|
MeasurementParseException(java.lang.String message)
Constructs a MeasurementParseException with the specified detail message.
|
MeasurementParseException(java.lang.String message,
java.lang.CharSequence parsedData,
int position)
Constructs a MeasurementParseException with the specified detail message, parsed text and index.
|
MeasurementParseException(java.lang.Throwable cause)
Constructs a MeasurementParseException with the specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getParsedString()
Returns the string that was being parsed.
|
int |
getPosition()
Returns the position where the error was found.
|
public MeasurementParseException(java.lang.String message, java.lang.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(java.lang.CharSequence parsedData, int position)
parsedData - the parsed text, should not be nullposition - the position where the error is found while parsing.public MeasurementParseException(java.lang.Throwable cause)
cause - the root causepublic MeasurementParseException(java.lang.String message)
message - the detail messagepublic int getPosition()
public java.lang.String getParsedString()
null, if null was passed as input.Copyright © 2014–2018 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.