Skip to content

@minecraft/server


@minecraft/server / BookPageContentError

Class: BookPageContentError ​

Defined in: @minecraft/server/index.d.ts:25226

The error called if page content being set on an ItemBookComponent are invalid ie. exceeding the maximum page length.

Extends ​

  • Error

Properties ​

cause? ​

optional cause?: unknown

Defined in: typescript/lib/lib.es2022.error.d.ts:24

Inherited from ​

Error.cause


message ​

message: string

Defined in: typescript/lib/lib.es5.d.ts:1075

Inherited from ​

Error.message


name ​

name: string

Defined in: typescript/lib/lib.es5.d.ts:1074

Inherited from ​

Error.name


pageIndex ​

readonly pageIndex: number

Defined in: @minecraft/server/index.d.ts:25235

Remarks ​

The index of the page requested to be modified.

This property can be read in early-execution mode.


reason ​

readonly reason: BookErrorReason

Defined in: @minecraft/server/index.d.ts:25243

Remarks ​

The reason for the error.

This property can be read in early-execution mode.


stack? ​

optional stack?: string

Defined in: typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.stack