3#ifndef JAVACC_TOKENMGRERROR_H
4#define JAVACC_TOKENMGRERROR_H
JAVACC_STRING_TYPE JJString
JJString getMessage()
You can also modify the body of this method to customize your error messages.
JJString LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar)
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical...
TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, int reason)
Full Constructor.
TokenMgrError()
No arg constructor.
TokenMgrError(const JJString &message, int reason)
Constructor with message and reason.
int errorCode
Indicates the reason why the exception is thrown.
@ STATIC_LEXER_ERROR
An attempt was made to create a second instance of a token manager.
@ LOOP_DETECTED
Detected (and bailed out of) an infinite loop in the token manager.
@ INVALID_LEXICAL_STATE
Tried to change to an invalid lexical state.
@ LEXICAL_ERROR
Lexical error occurred.
Token literal values and constants.