Error

loreline.Error (Class) → LexerError, ParseError, RuntimeError, WrappedError

Represents an error.

Instance Members

message: String

The error message describing what went wrong.


The position in the source code where the error occurred.


stack: Array<Anonymous>

The call stack of this error


toString(): String

Converts the error to a human-readable string.

Returns Description
String Formatted error message with position

new(message: String, ?pos: Position): Void

Creates a new lexer error.

Name Type Default Description
message String The error message
pos Position (optional) The position where the error occurred

Metadata

Name Parameters
:hxGen -