Skip to content

API reference / @jsprismarine/errors / script-host / ScriptOutOfMemoryError

Abstract Class: ScriptOutOfMemoryError ​

Defined in: packages/errors/src/script-host.ts:44

A script went over the engine's memory limit, and the error reached the host.

Extends ​

Constructors ​

Constructor ​

new ScriptOutOfMemoryError(message?): ScriptOutOfMemoryError

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

Parameters ​

message? ​

string

Returns ​

ScriptOutOfMemoryError

Inherited from ​

ScriptError.constructor

Constructor ​

new ScriptOutOfMemoryError(message?, options?): ScriptOutOfMemoryError

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

Parameters ​

message? ​

string

options? ​

ErrorOptions

Returns ​

ScriptOutOfMemoryError

Inherited from ​

ScriptError.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 ​

ScriptError.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 ​

ScriptError.docs


name ​

name: string = 'ScriptOutOfMemoryError'

Defined in: packages/errors/src/script-host.ts:45

Overrides ​

ScriptError.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 ​

ScriptError.params

Accessors ​

[cataloged] ​

Get Signature ​

get [cataloged](): true

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

Returns ​

true

Inherited from ​

ScriptError.[cataloged]


scriptMessage ​

Get Signature ​

get scriptMessage(): string

Defined in: packages/errors/src/script-host.ts:25

The message of the error the script threw, or the thrown value as a string.

Returns ​

string

Inherited from ​

ScriptError.scriptMessage


scriptName ​

Get Signature ​

get scriptName(): string

Defined in: packages/errors/src/script-host.ts:20

The name of the error the script threw, empty when it threw a value that is not an error.

Returns ​

string

Inherited from ​

ScriptError.scriptName


scriptStack ​

Get Signature ​

get scriptStack(): string

Defined in: packages/errors/src/script-host.ts:30

The script's stack where it threw, empty when the engine recorded none.

Returns ​

string

Inherited from ​

ScriptError.scriptStack