Dexie.ModifyError
Inheritance Hierarchy
Dexie.DexieError
Dexie.ModifyError
Description
Error that may occur in Collection.modify() and Collection.delete()
The methods that may throw this error can perform multiple operations on a collection. Therefore this error object will contain an array of the errors the occurred during the failed operations.
Properies
failures
Array of Error objects of all errors that have occurred
failedKeys
Array of the keys of the failed modifications. This array will have the same order as failures so that failures[i] will always represent the failure of failedKeys[i]
successCount
Number of successful modifications made. NOTE: Only useful in case error is caught and transaction is not aborted.
Properties derived from Error
Sample
With yield