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
When an action throws an uncaught exception, Ember.onerror does not execute.
As shown by the demo app below, there are several other situations where Ember.onerror does not apply, for Promise rejections in various cases. Those may not be bugs? Overall it's unclear to me what Ember.onerror is supposed to cover and whether using it is a best practice.
The text was updated successfully, but these errors were encountered:
skarger
changed the title
[Bug] Ember.onerror does not handle exceptions thrown from a component action
[Bug] Ember.onerror does not handle exceptions thrown in component action
Jul 22, 2020
Thanks for putting this together! We are chatting through this over in emberjs/ember-qunit#592. This demo app is a good starting point for the evaluation of scenarios that I was mentioning in my recent comments over there.
I'm going to close this issue for now (don't want to bifurcate the conversation), but I fully expect for this to result in some changes here (even if just for API docs).
@rwjblue Kindly clarify why the issue is closed? It looks like this issue isn't connected with ember-qunit as Ember.onerror doesn't catch exceptions thrown in ember component action.
Description
When an
action
throws an uncaught exception,Ember.onerror
does not execute.As shown by the demo app below, there are several other situations where
Ember.onerror
does not apply, for Promise rejections in various cases. Those may not be bugs? Overall it's unclear to me whatEmber.onerror
is supposed to cover and whether using it is a best practice.Reproduction
https://github.com/skarger/ember-on-error
Environment
Other Context
The text was updated successfully, but these errors were encountered: