This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Registering an error handler on the root zone #422
Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels