title: generic throw giving Expected an object to be thrown lint error
body: <p>Below throw code giving lint error <strong>Expected an object to be thrown no-throw-literal</strong></p>
  
  <pre><code>throw { code : 403, message : myMessage };
  </code></pre>
  
  <p>if i try <strong>throw new Error</strong>, i am not getting eslint but it gives [Object Object] in the response.</p>
  
  <pre><code>throw new Error({ code : 403, message : myMessage });
  </code></pre>
  
  <p>Could someone tell me how to fix <strong>Expected an object to be thrown</strong> error ? without removing eslint config/rules</p>