Dexie.InvalidStateError
Inheritance Hierarchy
Dexie.DexieError
Dexie.InvalidStateError
Description
Can happen when trying to use IndexedDB resource when not in a valid state to do so. For example, calling db.transaction() from within an upgrade callback (when current transaction is an upgrade transaction.)
Sample using Promise.catch()
Sample: switch(error.name)
Properties
name
Will always be Dexie.errnames.InvalidState === "InvalidStateError"
message
Detailed message
inner?
Inner exception instance (if any)
stack
Can be present if the error was thrown. If signaled, there wont be any call stack.