In Chrome\'s JavaScript console, if I run this:
var that = new XMLHttpRequest(); that.open(\'GET\', \'http://this_is_a_bad_url.com\', false); that.send();
exception.name returns 'Error' even on network errors a better way can be checking if error has url config like this :
exception.name
if(exception.config && exception.config.url){ // network error } else { // other errors }