Skip to content

@armada/sdk / index / StorageUnavailableError

Class: StorageUnavailableError ​

Defined in: src/errors.ts:33

The storage can't be used safely in this environment: the browser has no Web Locks API (an insecure context, or a very old browser), so the IndexedDB adapter can't lock its database against a second instance and refuses to open (SPEC §4.3). Not a conflict — no other instance holds the database; this one can never lock it.

Extends ​

Constructors ​

Constructor ​

new StorageUnavailableError(message, options?): StorageUnavailableError

Defined in: src/errors.ts:6

Parameters ​

message ​

string

options? ​
cause? ​

unknown

Returns ​

StorageUnavailableError

Inherited from ​

ArmadaError.constructor

Properties ​

code ​

readonly code: "STORAGE_UNAVAILABLE" = 'STORAGE_UNAVAILABLE'

Defined in: src/errors.ts:34

Overrides ​

ArmadaError.code