title: Proper use of errors
body: <p>I'm using TypeScript for a reasonably large project, and am wondering what the standard is for the use of <code>Error</code>s. For example, say I hand an index out of bounds exception in Java:</p>
  
  <pre><code>throw new IndexOutOfBoundsException();
  </code></pre>
  
  <p>Would the equivalent statement in TypeScript be:</p>
  
  <pre><code>throw new Error("Index Out of Bounds");
  </code></pre>
  
  <p>What other ways could I accomplish this? What is the accepted standard?</p>