title: set an error handler for jquery datatables ajax call
body: <p>I'm trying to have a custom error handler when something goes wrong (i.e. the server does not respond) on the ajax call for loading new data into my datatable.</p>
  
  <pre><code>$table.DataTable().ajax.url(ajaxURL).load();
  </code></pre>
  
  <p>By default it shows an alert and I can change that to throw a javascript error with the following setting:</p>
  
  <pre><code>$.fn.dataTable.ext.errMode = 'throw';
  </code></pre>
  
  <p>But with this, I just have an error logged to the console and I'm not sure how to catch that thrown error so I still can't provide my own error handler.</p>
  
  <p>There is also an error event listed in the documentation, but that doesn't seem to get triggered, so the following never alerts.</p>
  
  <pre><code>$table.on( 'error', function () { alert( 'error' );} );
  </code></pre>
  
  <p>Everything else I've found so far is for the legacy code, such as setting the fnServerData, which I would like to avoid getting into.</p>
  
  <p>Is there a method to set the ajax error callback in the 1.10 API?</p>