You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
and
This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject
So my question is, is this planned to be supported at any time in Angular 1? In a successful .then chain we can keep returning the same item/data, or modify it and return that, so why not re-throw an error in .catch that occurred without needing to include $q as a dependency?