public static class BaseParser.ParsingException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
int |
length
The length of the part of input at which the error occurred
|
@Nullable LexBuffer.Position |
pos
The position in input at which the error occurred
|
Constructor and Description |
---|
ParsingException(LexBuffer.Position pos,
int length,
String msg)
A parsing error exception with the given error message,
specifying the position and length of the part in the input
stream where the error occurred
|
ParsingException(@Nullable LexBuffer.Position pos,
String msg)
A parsing error exception with the given error message,
optionally specifying the position in the input stream
where the error occurred
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final @Nullable LexBuffer.Position pos
public final int length
public ParsingException(@Nullable LexBuffer.Position pos, String msg)
pos
- msg
- public ParsingException(LexBuffer.Position pos, int length, String msg)
pos
- length
- msg
-