Dexie.InvalidTableError
Inheritance Hierarchy
- Error
- Dexie.DexieError
- Dexie.InvalidTableError
- Dexie.DexieError
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
| name | Will always be Dexie.errnames.InvalidTable === "InvalidTableError" |
| 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. |