Is there any way to globally catch all exceptions including Promise exceptions. Example:
window.onerror = function myErrorHandler(errorMsg, url, lineNumb
If you are using native Promise, it's pretty simple. You only need to .catch this reject some where.
.catch
ajax(request).catch(function(rejected){ console.log(rejected); });
If I don't catch it somewhere, the uncaught in promise will keep showing. But If I catch it somewhere...