title: Is it possible to use exceptions as conditions?
body: <p>So here's some code from my application:</p>
  
  <pre><code>public void run() throws myException{
      boolean gameOver = false;
      while(!gameOver){
          //do stuff, and eventually make gameOver true to end execution
  ...
  </code></pre>
  
  <p>Now heres the deal, I want to remove the boolean attribute to use a user-defined exception to end the execution. 
  I was thinking of checking if this exception had been thrown or not in the while condition, to keep looping as long as it has <strong>not</strong> been thrown.</p>
  
  <p>Something along the lines of</p>
  
  <pre><code>while(myException.notThrown){
  </code></pre>
  
  <p>Can this be done?</p>