CommandError
Defined in: console-sdk/src/errors/classes.ts:143
A per-console command failed (command/*): the device is not connected,
the command is unsupported by its firmware, it timed out, was rejected, or
the console was busy.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CommandError(
code,command,message,options?):CommandError
Defined in: console-sdk/src/errors/classes.ts:151
Creates a command/* error for the named semantic command.
Parameters
Section titled “Parameters”"command/not-connected" | "command/unsupported" | "command/timeout" | "command/rejected" | "command/busy"
command
Section titled “command”string
message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”CommandError
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:"command/not-connected"|"command/unsupported"|"command/timeout"|"command/rejected"|"command/busy"
Defined in: console-sdk/src/errors/classes.ts:145
The command/* code identifying the command failure.
Overrides
Section titled “Overrides”command
Section titled “command”
readonlycommand:string
Defined in: console-sdk/src/errors/classes.ts:148
Semantic command name ('pause', 'setDisplayUnits', …) — never an opcode.
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