-
-
Notifications
You must be signed in to change notification settings - Fork 678
Dexie.BulkError
David Fahlander edited this page Mar 15, 2016
·
4 revisions
-
Error
-
Dexie.DexieError
- Dexie.BulkError
-
Dexie.DexieError
Error that may occur in WriteableTable.bulkAdd().
The method that may throw this error can perform multiple operations on a table. Therefore this error object will contain an array of the errors the occurred during the failed operations.
failures | Array of Error objects of all errors that have occurred |
db.friends.bulkAdd([{id: "shouldBeUnique", name: "Foo", age: 99}, {id: "shouldBeUnique", name: "Bar", age 21}])
.catch(Dexie.BulkError, function (err) {
err.failures.forEach(function (failure) {
console.error (failure.message);
});
});
Dexie.js - minimalistic and bullet proof indexedDB library