Class: PlotConnectionError

An error from the connection stage of Plot.ready() or its connection settings.

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

See

Error handling

Extends

Constructors

Constructor

new PlotConnectionError(code, message, options?): PlotConnectionError

Creates a Plot connection error.

Parameters

code

PlotConnectionErrorCode

The stable machine-readable failure reason.

message

string

A developer-facing explanation of the failure.

options?

PlotErrorOptions

Optional diagnostic information, including the cause.

Returns

PlotConnectionError

Overrides

PlotError.constructor

Properties

cause?

readonly optional cause?: unknown

The lower-level error that caused this failure, when one exists.

Inherited from

PlotError.cause


code

readonly code: PlotConnectionErrorCode

The stable reason for the connection failure.

Overrides

PlotError.code