[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/errors](https://jsprismarine.dev/api/@jsprismarine/errors/index.md) / [script-host](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/index.md) / ScriptTerminatedError

# Abstract Class: ScriptTerminatedError

Defined in: [packages/errors/src/script-host.ts:39](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/script-host.ts#L39)

A script ran out of its step budget. The engine stopped it with an error no script can catch,
at the same step on every run.

## Extends

- [`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md)

## Constructors

### Constructor

> **new ScriptTerminatedError**(`message?`): `ScriptTerminatedError`

Defined in: node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1080

#### Parameters

##### message?

`string`

#### Returns

`ScriptTerminatedError`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`constructor`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#constructor)

### Constructor

> **new ScriptTerminatedError**(`message?`, `options?`): `ScriptTerminatedError`

Defined in: node\_modules/.pnpm/typescript@6.0.3/node\_modules/typescript/lib/lib.es5.d.ts:1080

#### Parameters

##### message?

`string`

##### options?

`ErrorOptions`

#### Returns

`ScriptTerminatedError`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`constructor`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#constructor)

## Properties

### code

> `abstract` `readonly` **code**: `string`

Defined in: [packages/errors/src/JSPrismarineError.ts:36](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/JSPrismarineError.ts#L36)

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

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`code`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#code)

***

### docs

> `abstract` `readonly` **docs**: `string`

Defined in: [packages/errors/src/JSPrismarineError.ts:37](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/JSPrismarineError.ts#L37)

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

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`docs`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#docs)

***

### name

> **name**: `string` = `'ScriptTerminatedError'`

Defined in: [packages/errors/src/script-host.ts:40](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/script-host.ts#L40)

#### Overrides

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`name`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#name)

***

### params

> `abstract` `readonly` **params**: `Readonly`\<`Record`\<`string`, `unknown`\>\>

Defined in: [packages/errors/src/JSPrismarineError.ts:38](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/JSPrismarineError.ts#L38)

The placeholder values the message was built from.

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`params`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#params)

## Accessors

### \[cataloged\]

#### Get Signature

> **get** **\[cataloged\]**(): `true`

Defined in: [packages/errors/src/JSPrismarineError.ts:40](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/JSPrismarineError.ts#L40)

##### Returns

`true`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`[cataloged]`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#cataloged)

***

### scriptMessage

#### Get Signature

> **get** **scriptMessage**(): `string`

Defined in: [packages/errors/src/script-host.ts:25](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/script-host.ts#L25)

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

##### Returns

`string`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`scriptMessage`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#scriptmessage)

***

### scriptName

#### Get Signature

> **get** **scriptName**(): `string`

Defined in: [packages/errors/src/script-host.ts:20](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/script-host.ts#L20)

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

##### Returns

`string`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`scriptName`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#scriptname)

***

### scriptStack

#### Get Signature

> **get** **scriptStack**(): `string`

Defined in: [packages/errors/src/script-host.ts:30](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/script-host.ts#L30)

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

##### Returns

`string`

#### Inherited from

[`ScriptError`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md).[`scriptStack`](https://jsprismarine.dev/api/@jsprismarine/errors/script-host/classes/ScriptError.md#scriptstack)
