-
-
Notifications
You must be signed in to change notification settings - Fork 664
Dexie.InvalidTableError
David Fahlander edited this page Mar 17, 2016
·
2 revisions
-
Error
-
Dexie.DexieError
- Dexie.InvalidTableError
-
Dexie.DexieError
Happens when trying to access a table that does not exist or is not part of current transaction.
doSomeDatabaseWork().then(function() {
// Success
}).catch(Dexie.InvalidTableError, function (e) {
// Failed with InvalidTableError
console.error ("InvalidTable error: " + e.message);
}).catch(Error, funtion (e) {
// Any other error derived from standard Error
console.error ("Error: " + e.message);
}).catch(funtion (e) {
// Other error such as a string was thrown
console.error (e);
});
db.on('error', function (error) {
switch (error.name) {
case Dexie.errnames.InvalidTable: // errnames.InvalidTable ==="InvalidTableError"
console.error ("InvalidTable error");
break;
default:
console.error ("error: " + e);
}
});
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 thown. If signaled, there wont be any call stack. |
Dexie.js - minimalistic and bullet proof indexedDB library