title: Javascript: How to stop multiple jQuery ajax error handlers?
body: <p>A team member put this into our project</p>
  
  <pre><code>$(function() {
      $("body").bind("ajaxError", function(event, XMLHttpRequest, ajaxOptions, thrownError){
          alert(thrownError);
      });
  }
  </code></pre>
  
  <p>However I want to supress one of my errors (as it would be noise and verification isn't needed)</p>
  
  <pre><code>function blah() {
  
      ...
  
      errFunc = function(event, xhr, opts, errThrown) {
          //what could I do here?
          //event.stopImmediatePropagation()?
      }
  
      $.ajax({
          url        : '/unimportant_background_refresh',
          type       : 'GET',
          data       : { },
          dataType   : 'json',
          success    : updateBackgroundStuff,
          error      : errFunc,  // Suppresses error message.
      });
  
  }
  </code></pre>
  
  <p>How can I stop the catch all error from happenning please? Can I just do something in the error function such as <code>{ event.StopPropogation(); }</code> or must I work out some mechanism for having the catch all selectively ignore things please?</p>