LexerException

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
constructor(message: String, line: Int, column: Int)

Creates a LexerException with a descriptive message and position information.

constructor(message: String, line: Int, column: Int, cause: Throwable)

Creates a LexerException with a descriptive message, position information, and a cause.

constructor(line: Int, column: Int, cause: Throwable)

Creates a LexerException for an uncaught lexeme matcher exception.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?