[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / [world/Generator](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/Generator/index.md) / GenerationStopped

# Class: GenerationStopped

Defined in: [packages/prismarine/src/world/Generator.ts:15](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/Generator.ts#L15)

How a generator refuses a chunk once [Generator.stopGenerating](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/Generator/index.md#stopgenerating) has been called.

Its own class so a caller can tell a shutdown apart from a chunk that genuinely could not be
generated. Those are the same `Error` otherwise, and the start region has to report one and
re-throw the other.

## Extends

- `GenerationStopped`

## Constructors

### Constructor

> **new GenerationStopped**(`cx`, `cz`): `GenerationStopped`

Defined in: [packages/prismarine/src/world/Generator.ts:20](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/Generator.ts#L20)

#### Parameters

##### cx

`number`

Chunk x of the request that was refused.

##### cz

`number`

Chunk z of the request that was refused.

#### Returns

`GenerationStopped`

#### Overrides

`PrismarineWorldErrors.GenerationStopped.constructor`

## Properties

### code

> `readonly` **code**: `"PRISMARINE_GENERATION_STOPPED"` = `'PRISMARINE_GENERATION_STOPPED'`

Defined in: [packages/errors/src/prismarine/world.ts:4018](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4018)

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.code`

***

### docs

> `readonly` **docs**: `"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"` = `'https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped'`

Defined in: [packages/errors/src/prismarine/world.ts:4019](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4019)

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.docs`

## Accessors

### \[cataloged\]

#### Get Signature

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

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

##### Returns

`true`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.[cataloged]`

***

### params

#### Get Signature

> **get** **params**(): `object` & `Readonly`\<`Record`\<`string`, `unknown`\>\>

Defined in: [packages/errors/src/prismarine/world.ts:4031](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4031)

The placeholder values the message was built from.

##### Returns

`object` & `Readonly`\<`Record`\<`string`, `unknown`\>\>

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.params`

***

### code

#### Get Signature

> **get** `static` **code**(): `"PRISMARINE_GENERATION_STOPPED"`

Defined in: [packages/errors/src/prismarine/world.ts:4002](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4002)

##### Returns

`"PRISMARINE_GENERATION_STOPPED"`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.code`

***

### docs

#### Get Signature

> **get** `static` **docs**(): `"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"`

Defined in: [packages/errors/src/prismarine/world.ts:4014](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4014)

##### Returns

`"https://jsprismarine.dev/errors/prismarine/world#prismarine-generation-stopped"`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.docs`

***

### domain

#### Get Signature

> **get** `static` **domain**(): `"prismarine"`

Defined in: [packages/errors/src/prismarine/world.ts:4005](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4005)

##### Returns

`"prismarine"`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.domain`

***

### module

#### Get Signature

> **get** `static` **module**(): `"world"`

Defined in: [packages/errors/src/prismarine/world.ts:4008](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4008)

##### Returns

`"world"`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.module`

***

### template

#### Get Signature

> **get** `static` **template**(): `"Chunk {cx},{cz} was not generated: the generator has stopped"`

Defined in: [packages/errors/src/prismarine/world.ts:4011](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/errors/src/prismarine/world.ts#L4011)

##### Returns

`"Chunk {cx},{cz} was not generated: the generator has stopped"`

#### Inherited from

`PrismarineWorldErrors.GenerationStopped.template`
