title: How to catch errors involving XmlHttpRequest?
body: <p>I want to catch all errors with the help of TRY {} CATCH(){} when I send data to a server via XMLHttpRequest. </p>
  
  <p>How can I receive all errors, such as <code>net::ERR_INTERNET_DISCONNECTED</code>, etc. ?</p>