Skip to content

@minecraft/server-ui


@minecraft/server-ui / FormVisibilityError

Class: FormVisibilityError

Defined in: @minecraft/server-ui/index.d.ts:1905

Thrown when a form visibility operation fails, such as attempting to show a form that is already showing or attempting to close a form that is not currently open.

Extends

  • Error

Properties

cause?

optional cause?: unknown

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

Inherited from

Error.cause


formId

readonly formId: string

Defined in: @minecraft/server-ui/index.d.ts:1914

Remarks

The identifier of the form that caused the visibility error.

This property can be read in early-execution mode.


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


reason

readonly reason: FormVisibilityErrorReason

Defined in: @minecraft/server-ui/index.d.ts:1922

Remarks

The reason the form visibility operation failed.

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