title: Issue catching jQuery ajax exceptions
body: <p>What I am trying to do is catch all errors and I handle myself.</p>
  
  <p>But when and error occurs on jQuery.ajax() I can know if got error on the error options. But it is not being catchable by my window.onerror event.</p>
  
  <pre><code>window.onerror = function(e) {
      console.log("i was here! ERROR: ", e);
      console.log("-----------");
      return true; //dont show errors on console
  }
  
  $(function() {
  
      $.ajax({
          url: "asdasdasd/as/da/sdtest/asdasd",
          error: function() {
              // ok i know here is an error and it catches on my window.onerror. BUT look at your console, still have a GET error. That error I want to handle. Can be with try/catch or inside the window.onerror. I want that Exception object. Not this one that I created.
              throw new Error("it catches, but still have errors on my console");
          }
      });
  
      test[0].test = "it fails";
  
  });
  </code></pre>
  
  <p>You can test over here: <a href="http://jsfiddle.net/uHPXm/4/" rel="nofollow">http://jsfiddle.net/uHPXm/4/</a></p>