Lexer Exception
Exception thrown when lexing fails.
A LexerException is raised when the Lexer encounters input that cannot be matched by any Lexeme, when input ends unexpectedly, or when a Lexeme matcher throws an exception. The exception message includes the line and column position where the error occurred.
Constructors
Link copied to clipboard
Creates a LexerException with a descriptive message and position information.
Creates a LexerException with a descriptive message, position information, and a cause.
Creates a LexerException for an uncaught lexeme matcher exception.