title: Throw multiple exceptions in JavaScript
body: <p>I'm wondering if there is a way to throw multiple errors and catch all of them in JavaScript.</p>
  
  <p>I'm looking for specific fields, and when I find a missing one I would like to throw an error.</p>
  
  <p>The problem is that if I throw a single error, like:</p>
  
  <pre><code>throw "you are missing field: " xxxxxx
  </code></pre>
  
  <p>I'm not telling the user all of the other fields which he/she is missing.</p>
  
  <p>I would also not like to combine everything into a single string, since the error message might be too long.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>