title: What is the proper way to return from an exception in Scala?
body: <p>In a non-functional language, I might do something like:</p>
  
  <pre><code>try {
    // some stuff
  } catch Exception ex {
    return false;
  }
  
  // Do more stuff
  
  return true;
  </code></pre>
  
  <p>In Scala, however, this pattern is clearly not correct. If my scala code looks like this:</p>
  
  <pre><code>try {
    // do some stuff
  }
  catch {
    case e: Exception =&gt; // I want to get out of here and return false
    )
  }
  
  // do more stuff
  
  true
  </code></pre>
  
  <p>How do I properly do that? I don't want to use the "return" statement, of course, but I also don't want to drop through and "do more stuff" and eventually return true.</p>