title: Illegal start of expression while throwing an exception?
body: <p>I keep getting the error Illegal start of expression in this part of the code.</p>
  
  <pre><code>switch(length) {
      case 1: if(message.equalsIgnoreCase("End")){    
          throws new AnotherException("Stop",true);
      } else {
          throws new AnotherException("Continue",false); 
      } 
      break;
  }
  </code></pre>
  
  <p>Specifically if I add</p>
  
  <pre><code>throw new AnotherException
  </code></pre>
  
  <p>Can someone explain the reason why it causes this error? Thanks.</p>