You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dexie.on.error consumes only database/transaction exceptions. There is discussed issue #43 which clarify the behaviour. But I would say Dexie promises needs the global exception handler.
I am chaining the promises very much, also combining with other Promise/A+ implementation. Also using global exception handler for whole application which push the exceptions to server logs.
With current Dexie implementation I have to explicitly catch each exception in promise and push it to global exception handler. Also other promises implementation has the global onerror event, so this makes Dexie pretty much incompatibile with rest of my app.
The text was updated successfully, but these errors were encountered:
Introducing Promise.on("error") - global error event that not only
catched failing transactions (like db.on("error")) but also operations
that happen outside a transaction or database operation.
Dexie.on.error consumes only database/transaction exceptions. There is discussed issue #43 which clarify the behaviour. But I would say Dexie promises needs the global exception handler.
I am chaining the promises very much, also combining with other Promise/A+ implementation. Also using global exception handler for whole application which push the exceptions to server logs.
With current Dexie implementation I have to explicitly catch each exception in promise and push it to global exception handler. Also other promises implementation has the global onerror event, so this makes Dexie pretty much incompatibile with rest of my app.
The text was updated successfully, but these errors were encountered: