我正在使用承诺从某个 URL 访问一些数据并捕获我想使用 .catch 的错误。如果我错过了一些错误,我无论如何都可以在 .finally 中捕捉到,但我忽略了哪些错误?
$http.get('/someUrl', config)
.then(function(data) {
}).catch(function activateError(error) {
if (!error.handled) {
alert(error);
}
}).finally(function(){
});