Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork22
Description
One big issue with exception handling in JavaScript isPromises: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events likePromise.onPossiblyUnhandledRejection (bluebird.js),Q.getUnhandledReasons (Q.js) orprocess.on('unhandledRejection) (Node.js). Not subscribing to those events when using Promises probably contributes to many programmer errors staying unnoticed, as the application won't neccessarily terminate.
It would be cool if Exceptionless.js checked for the existence of such modules and events and created handlers that automatically submit the exceptions. While we do that, we should refactor all global exception handlers into implementations of an interface that can be added to the configuration like plugins.
Name proposals:
- IGlobalExceptionHandler
- IExceptionHook
- IExceptionSource