public class ParserException extends MeasurementException
| Constructor and Description |
|---|
ParserException(CharSequence parsedData,
int position)
Constructs a ParserException with the parsed text and offset.
|
ParserException(String message,
CharSequence parsedData,
int position)
Constructs a ParserException with the specified detail message, parsed text and index.
|
ParserException(Throwable cause)
Constructs a ParserException with the specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParsedString()
Returns the string that was being parsed.
|
int |
getPosition()
Returns the position where the error was found.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParserException(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 ParserException(CharSequence parsedData, int position)
parsedData - the parsed text, should not be nullposition - the position where the error is found while parsing.public ParserException(Throwable cause)
cause - the root causepublic int getPosition()
public String getParsedString()
null, if null was passed as input.Copyright © 2014–2016 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.