3 ms·
Isn't throwing exception in promise same as calling reject? The receiver of the promise is the one who should handle rejection. Not the one creating the promis
by Too 9y ago
Isn't throwing exception in promise same as calling reject?
The receiver of the promise is the one who should handle rejection. Not the one creating the promise.
If the receiver doesn't handle it you can register global error handler and log all unhandled errors.