Skip to content

API reference / @jsprismarine/errors / Error

Class: Error ​

Defined in: packages/errors/src/index.ts:16

Extends ​

  • BuiltinError

Extended by ​

Constructors ​

Constructor ​

new Error(message?): Error

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

Parameters ​

message? ​

string

Returns ​

Error

Inherited from ​

BuiltinError.constructor

Constructor ​

new Error(message?, options?): Error

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

Parameters ​

message? ​

string

options? ​

ErrorOptions

Returns ​

Error

Inherited from ​

BuiltinError.constructor

Properties ​

code ​

readonly code: ErrorKind = ErrorKind.GENERIC_NAMESPACE_INVALID

Defined in: packages/errors/src/index.ts:18


name ​

readonly name: string = 'Error'

Defined in: packages/errors/src/index.ts:17

Overrides ​

BuiltinError.name