Skip to content

API reference / @jsprismarine/loot / LootGrammarError

Class: LootGrammarError ​

Defined in: loot/src/table.ts:135

Thrown by a strict parse, naming every error the table reported.

See ​

LootParseOptions.strict

Extends ​

Constructors ​

Constructor ​

new LootGrammarError(diagnostics): LootGrammarError

Defined in: loot/src/table.ts:139

Parameters ​

diagnostics ​

readonly Diagnostic[]

Returns ​

LootGrammarError

Overrides ​

Error.constructor

Properties ​

diagnostics ​

readonly diagnostics: readonly Diagnostic[]

Defined in: loot/src/table.ts:137

The errors that stopped the parse, in the order they were reported.