ConnectError
Defined in: console-sdk/src/errors/classes.ts:100
A connection attempt failed (connect/*). Carries the original connect
target so UIs can retry or explain in one pass, and — for modality
conflicts — the device already occupying the slot.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConnectError(
code,target,message,options?):ConnectError
Defined in: console-sdk/src/errors/classes.ts:120
Creates a connect/* error for the given connect target.
Parameters
Section titled “Parameters”"connect/timeout" | "connect/not-found" | "connect/incompatible-device" | "connect/device-limit" | "connect/modality-conflict" | "connect/cancelled"
target
Section titled “target”object | DeviceId
message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”ConnectError
Overrides
Section titled “Overrides”ConsoleSdkError.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
readonlyoptionalcause?:unknown
Defined in: console-sdk/src/errors/classes.ts:41
The underlying lower-level error, when one exists. Typed unknown —
never a ble-plx (or any other dependency) type publicly.
Inherited from
Section titled “Inherited from”
readonlycode:"connect/timeout"|"connect/not-found"|"connect/incompatible-device"|"connect/device-limit"|"connect/modality-conflict"|"connect/cancelled"
Defined in: console-sdk/src/errors/classes.ts:102
The connect/* code identifying the connection failure.
Overrides
Section titled “Overrides”conflictingDeviceId?
Section titled “conflictingDeviceId?”
readonlyoptionalconflictingDeviceId?:DeviceId
Defined in: console-sdk/src/errors/classes.ts:117
Present iff code === 'connect/modality-conflict' — the connected device
of the same modality, so a “swap machines?” prompt renders in one pass.
deviceId?
Section titled “deviceId?”
readonlyoptionaldeviceId?:DeviceId
Defined in: console-sdk/src/errors/classes.ts:35
Present whenever the failure is attributable to a specific device.
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”target
Section titled “target”
readonlytarget:object|DeviceId
Defined in: console-sdk/src/errors/classes.ts:111
The target the failed connect() was asked to reach. Structurally this
is the public ConnectTarget union
(DeviceId | Device | { consoleId } | { nearest }); it is declared wide
here because errors/ is a foundations-layer leaf module and the
canonical ConnectTarget lands with the fleet surface.