ParseExceptionpublic class ParseException extends Exception Signals that an error has been reached unexpectedly
while parsing. |
Fields Summary |
---|
private int | errorOffsetThe zero-based character offset into the string being parsed at which
the error was found during parsing. |
Constructors Summary |
---|
public ParseException(String s, int errorOffset)Constructs a ParseException with the specified detail message and
offset.
A detail message is a String that describes this particular exception.
super(s);
this.errorOffset = errorOffset;
|
Methods Summary |
---|
public int | getErrorOffset()Returns the position where the error was found.
return errorOffset;
|
|