ConsoleSdkError
Defined in: console-sdk/src/errors/classes.ts:27
Base class of every error the Console SDK produces — one hierarchy,
discriminated by the namespaced ConsoleSdkErrorCode string on
code. Both instanceof checks and code matching narrow; substring
classification of message is never required.
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”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.
Overrides
Section titled “Overrides”Error.cause
abstractreadonlycode:ConsoleSdkErrorCode
Defined in: console-sdk/src/errors/classes.ts:32
Namespaced, greppable discriminant. Subclasses narrow this to their
namespace (e.g. ConnectError.code is `connect/${string}`).
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.
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack