Error
Represents an error.
Instance Members
message: StringThe error message describing what went wrong.
pos: PositionThe position in the source code where the error occurred.
stack: Array<Anonymous>The call stack of this error
toString(): StringConverts the error to a human-readable string.
| Returns | Description |
|---|---|
| String | Formatted error message with position |
Creates a new lexer error.
| Name | Type | Default | Description |
|---|---|---|---|
message |
String | The error message | |
pos |
Position | (optional) | The position where the error occurred |