Skip to content

API reference / @jsprismarine/molang / MolangSyntaxError

Class: MolangSyntaxError ​

Defined in: lexer.ts:19

Raised when the source text cannot be tokenized or parsed.

Extends ​

Constructors ​

Constructor ​

new MolangSyntaxError(message, offset): MolangSyntaxError

Defined in: lexer.ts:20

Parameters ​

message ​

string

offset ​

number

Offset in the source text where the error was found.

Returns ​

MolangSyntaxError

Overrides ​

Error.constructor

Properties ​

offset ​

readonly offset: number

Defined in: lexer.ts:23

Offset in the source text where the error was found.