Skip to content

API reference / @jsprismarine/prismarine / ConfigSyntaxError

Class: ConfigSyntaxError ​

Defined in: prismarine/src/config/ConfigDocument.ts:74

Raised when a config file cannot be read as JSON.

Thrown rather than swallowed on purpose. Treating a file with a typo in it as empty and then writing the defaults back is how a server used to erase its own config; refusing to start keeps the file for the person to fix.

Extends ​

Constructors ​

Constructor ​

new ConfigSyntaxError(detail): ConfigSyntaxError

Defined in: prismarine/src/config/ConfigDocument.ts:75

Parameters ​

detail ​

string

Returns ​

ConfigSyntaxError

Overrides ​

Error.constructor