[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/errors](https://jsprismarine.dev/api/@jsprismarine/errors/index.md) / [chunkgen](https://jsprismarine.dev/api/@jsprismarine/errors/chunkgen/index.md) / ChunkReadOutOfWindowError

# Abstract Class: ChunkReadOutOfWindowError

Defined in: [packages/errors/src/chunkgen.ts:18](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/chunkgen.ts#L18)

Raised when a status body asks for a chunk its step did not declare.

Java builds a `CrashReport` titled "Exception generating new chunk" and throws
`ReportedException` in the same place, from `WorldGenRegion.getChunk`. An undeclared read is a
crash on the first chunk rather than a difference on the thousandth, which is the reason the
step table is enforced rather than documented.

## Extends

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

## Constructors

### Constructor

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

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

#### Parameters

##### message?

`string`

#### Returns

`ChunkReadOutOfWindowError`

#### Inherited from

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`constructor`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md#constructor)

### Constructor

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

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

#### Parameters

##### message?

`string`

##### options?

`ErrorOptions`

#### Returns

`ChunkReadOutOfWindowError`

#### Inherited from

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`constructor`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.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

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`code`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.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

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`docs`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md#docs)

***

### name

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

Defined in: [packages/errors/src/chunkgen.ts:19](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/chunkgen.ts#L19)

#### Overrides

`JSPrismarineError.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

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`params`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.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

[`JSPrismarineError`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md).[`[cataloged]`](https://jsprismarine.dev/api/@jsprismarine/errors/JSPrismarineError/classes/JSPrismarineError.md#cataloged)
