Is there any way to globally catch all exceptions including Promise exceptions. Example:
window.onerror = function myErrorHandler(errorMsg, url, lineNumb
In Node.js, you can use:
process.on('unhandledRejection', (reason, promise) => { console.error(`Uncaught error in`, promise); });