Dexie.InvalidTableError

Inheritance Hierarchy

Description

Happens when trying to access a table that does not exist or is not part of current transaction.

Sample using Promise.catch()

doSomeDatabaseWork()
  .then(() => {
    // Success
  })
  .catch((e) => {
    if (e?.name === 'InvalidTableError') {
      // Failed with InvalidTableError
      console.error('InvalidTable error: ' + e.message);
    }
  });

Properties

nameWill always be Dexie.errnames.InvalidTable === "InvalidTableError"
messageDetailed message
inner?Inner exception instance (if any)
stackCan be present if the error was thrown. If signaled, there wont be any call stack.

Table of Contents