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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OutsideProviderError(
message?):OutsideProviderError
Defined in: console-sdk/src/errors/classes.ts:247
Creates the error; the default message names the missing provider.
Parameters
Section titled “Parameters”message?
Section titled “message?”string = "Console SDK APIs must be used within <ConsoleProvider>. Wrap your component tree in <ConsoleProvider> and call hooks from inside it."
Returns
Section titled “Returns”OutsideProviderError
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:"sdk/outside-provider"="sdk/outside-provider"
Defined in: console-sdk/src/errors/classes.ts:244
Always 'sdk/outside-provider'.
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