Class: PlotConnectionError

An error thrown when the game cannot connect to Plot.

Use code for program logic and message for developer-facing diagnostics.

Extends

  • Error

Constructors

Constructor

new PlotConnectionError(code, message): PlotConnectionError

Creates a Plot connection error.

Parameters

code

PlotConnectionErrorCode

The stable machine-readable failure reason.

message

string

A developer-facing explanation of the failure.

Returns

PlotConnectionError

Overrides

Error.constructor

Properties

code

readonly code: PlotConnectionErrorCode

The stable reason for the connection failure.