title: General Exception in Java
body: <p>I am looking to throw a general <code>Exception</code> in Java.</p>
  
  <p>The "situation" is basically if an empty line is encountered, an exception is thrown and the blank line ignored.</p>
  
  <p>Now, I come from a C# background so I would just throw a normal <code>Exception</code>. In Java, is there one? I can't seem to find it.</p>
  
  <p>I know I could assert, but would this solve the problem correctly using an <code>AssertionException</code> ?</p>
  
  <p>Thanks,</p>
  
  <p>Kyle</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>Thanks for the answers. Unfortunately it was my own foolishness that allowed me to miss <code>Exception</code>, which I found just before checking back. I accepted Bills answer for the assertion comment, considering I couldn't delete the question due to too many up votes (in like 10 seconds I might add, hehe).</p>