title: Javascript try-catch doesn't catch 'Failed to load resource: net::ERR_CONNECTION_RESET '
body: <p>I have a multiple file uploader but while it's uploading sometimes 1 out of 10 files doesn't make it and it returns a <code>Failed to load resource: net::ERR_CONNECTION_RESET</code> in chrome console. I tried to catch it with the try-catch, but it acts as if no error occurred. What am I doing wrong?</p>
  
  <pre><code>var ajax = new XMLHttpRequest();
  ajax.open("POST", "/multiFileUploadHandler.php");
  try {
      ajax.send(formdata);
  } catch (err) {
      alert('Error: '+err);
  }
  </code></pre>