Skip to content

API reference / @jsprismarine/errors / prismarine/server / ConfigSyntaxError

Abstract Class: ConfigSyntaxError ​

Defined in: packages/errors/src/prismarine/server.ts:17

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(message?): ConfigSyntaxError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1080

Parameters ​

message? ​

string

Returns ​

ConfigSyntaxError

Inherited from ​

JSPrismarineError.constructor

Constructor ​

new ConfigSyntaxError(message?, options?): ConfigSyntaxError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1080

Parameters ​

message? ​

string

options? ​

ErrorOptions

Returns ​

ConfigSyntaxError

Inherited from ​

JSPrismarineError.constructor

Properties ​

code ​

abstract readonly code: string

Defined in: packages/errors/src/JSPrismarineError.ts:36

The catalog code, such as LEVELDB_DATABASE_LOCKED. It never changes between releases.

Inherited from ​

JSPrismarineError.code


docs ​

abstract readonly docs: string

Defined in: packages/errors/src/JSPrismarineError.ts:37

The address of this error's entry in the error reference.

Inherited from ​

JSPrismarineError.docs


name ​

name: string = 'ConfigSyntaxError'

Defined in: packages/errors/src/prismarine/server.ts:18

Overrides ​

JSPrismarineError.name


params ​

abstract readonly params: Readonly<Record<string, unknown>>

Defined in: packages/errors/src/JSPrismarineError.ts:38

The placeholder values the message was built from.

Inherited from ​

JSPrismarineError.params

Accessors ​

[cataloged] ​

Get Signature ​

get [cataloged](): true

Defined in: packages/errors/src/JSPrismarineError.ts:40

Returns ​

true

Inherited from ​

JSPrismarineError.[cataloged]