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
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
I want to collect uncaught exceptions throughout my code in an error handler to use for reporting purposes, but exceptions in Promises don't fire window.onerror. An error handler on the root Zone seems to work quite well, but it seems that the only non-ugly way to register an error handler is during Zone construction by passing in a ZoneSpec with an onHandleError function, and the root Zone is constructed automatically.
Is there a recommended way to do this or another approach I can use?
The text was updated successfully, but these errors were encountered:
I want to collect uncaught exceptions throughout my code in an error handler to use for reporting purposes, but exceptions in Promises don't fire
window.onerror
. An error handler on the root Zone seems to work quite well, but it seems that the only non-ugly way to register an error handler is during Zone construction by passing in a ZoneSpec with anonHandleError
function, and the root Zone is constructed automatically.Is there a recommended way to do this or another approach I can use?
The text was updated successfully, but these errors were encountered: