Hello,
Can anyone help me with HTTP interceptors?
The goal is to handle all unhandled errors in Global interceptor (registed 
in $httpProvider.interceptors ?).

For example:
While calling *MyResource.get()* I got HTTP Code 404 in *responseError 
*interceptor 
here I just return null and "swallow" the error.
But in any other case, where I'm not implicitly "swallow" an error, it 
should be processed with Global interceptor (in my case it show an error 
message).

My actual code executes *responseError* interceptor from 
$httpProvider.interceptors and than *responseError* interceptor from 
*MyResource*, 
What I need is to reverse the execution order of interceptors, and somehow 
let know to Global interceptor that request is canceled and there is no 
need to handle it like error

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to