Constructor
new ParallelReportDispatcher(onError)
Parameters:
Name | Type | Description |
---|---|---|
onError |
function | Function called when an unhandled exception, unhandled promise rejection, or explicit reporter failure occurs |
- Implements:
Methods
addReporter(reporterToAdd)
Adds a reporter to the list of reporters that events will be dispatched to.
Parameters:
Name | Type | Description |
---|---|---|
reporterToAdd |
Reporter | The reporter to be added. |
- See:
clearReporters()
Clears all registered reporters.
installGlobalErrors()
Installs a global error handler. After this method is called, any unhandled exceptions or unhandled promise rejections will be passed to the onError callback that was passed to the constructor.
uninstallGlobalErrors()
Uninstalls the global error handler.