public class ParserException extends PredictiveServerException
ParserException is thrown to indicate that an attempt to parse a String
to an Expression failed. Parsing can fail due to syntax, lexical or semantic errors.| Constructor and Description |
|---|
ParserException(java.lang.String message,
int startPosition,
int endPosition)
Creates a ParserException.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndPosition()
Returns the end position in the parsed
String of the text relating to the error. |
int |
getStartPosition()
Returns the start position in the parsed
String of the text relating to the error. |
public ParserException(java.lang.String message,
int startPosition,
int endPosition)
message - - the error messagestartPosition - - the start position of the error in the parsed StringendPosition - - the end position of the error in the parsed Stringpublic int getStartPosition()
String of the text relating to the error.
Returns -1 if start position is not valid.String of the text relating to the error.public int getEndPosition()
String of the text relating to the error.
Returns -1 if start position is not valid.String of the text relating to the error.Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.