SessionError
Defined in: console-sdk/src/errors/classes.ts:181
A workout-session or record failure (session/* | record/*): invalid
plans, arm failures, phase violations, console-stopped detection, device
loss mid-session, or record retrieval/reconciliation problems.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SessionError(
code,message,options?):SessionError
Defined in: console-sdk/src/errors/classes.ts:195
Creates a session/* or record/* error.
Parameters
Section titled “Parameters”"session/invalid-plan" | "session/arm-failed" | "session/already-active" | "session/wrong-phase" | "session/console-stopped" | "session/devices-lost" | "session/bluetooth-off" | "record/unavailable" | "record/mismatch"
message
Section titled “message”string
options?
Section titled “options?”Returns
Section titled “Returns”SessionError
Overrides
Section titled “Overrides”ConsoleSdkError.constructor
Properties
Section titled “Properties”armed?
Section titled “armed?”
readonlyoptionalarmed?: readonlyDeviceId[]
Defined in: console-sdk/src/errors/classes.ts:192
For arm failures: which devices armed before rollback (RM-582 lineage) — lets callers report or clean up exactly what was touched.
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:"session/invalid-plan"|"session/arm-failed"|"session/already-active"|"session/wrong-phase"|"session/console-stopped"|"session/devices-lost"|"session/bluetooth-off"|"record/unavailable"|"record/mismatch"
Defined in: console-sdk/src/errors/classes.ts:183
The session/* or record/* code identifying the failure.
Overrides
Section titled “Overrides”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