Dexie.SubTransactionError
Inheritance Hierarchy
Description
db.transaction('r', db.friends, ()=> {
return db.transaction('rw', db.friends, db.pets, ()=> {
}).catch(e => {
// e will be SubTransactionError for two reasons:
// 1. Parent transaction is readonly.
// 2. Parent transaction does not include db.pets.
})
});Sample using Promise.catch()
Sample: switch(error.name)
Properties
name
Will always be Dexie.errnames.SubTransaction === "SubTransactionError"