Skip to content

OutsideProviderError

Defined in: console-sdk/src/errors/classes.ts:242

An SDK hook or client was used outside <ConsoleProvider>. Always a programming error in the host app: wrap the component tree in the provider.

new OutsideProviderError(message?): OutsideProviderError

Defined in: console-sdk/src/errors/classes.ts:247

Creates the error; the default message names the missing provider.

string = "Console SDK APIs must be used within <ConsoleProvider>. Wrap your component tree in <ConsoleProvider> and call hooks from inside it."

OutsideProviderError

ConsoleSdkError.constructor

readonly optional cause?: 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.

ConsoleSdkError.cause


readonly code: "sdk/outside-provider" = "sdk/outside-provider"

Defined in: console-sdk/src/errors/classes.ts:244

Always 'sdk/outside-provider'.

ConsoleSdkError.code


readonly optional deviceId?: DeviceId

Defined in: console-sdk/src/errors/classes.ts:35

Present whenever the failure is attributable to a specific device.

ConsoleSdkError.deviceId


message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ConsoleSdkError.message


name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ConsoleSdkError.name


optional stack?: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ConsoleSdkError.stack