public final class LexException
extends java.lang.Exception
Constructor and Description |
---|
LexException(java.lang.String msg,
java.lang.String text,
int badCharIndex)
Initialize a lex exception to a message, the text that was being lexed,
and the index of the character about to be lexed that triggered the
exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getBadCharIndex()
Get this exception's bad character index.
|
java.lang.String |
getText()
Get this exception's text being lexed.
|
public LexException(java.lang.String msg, java.lang.String text, int badCharIndex)
msg
- reason for the exceptiontext
- the text being lexedbadCharIndex
- index of character about to be lexed that triggered
the exception