How can I let my function crash?
<p>In certain cases I want my function to simply crash and my app to stop execution:</p>

<pre><code>public void foo() {
    if(lifeIsWorthLiving) {
        /*code ...*/
    }
    else {
        /* log the problem, throw an exception and die */ 
    }
}
</code></pre>

<p>Now if I add <code>throw Exception("lifeIsWorthLiving = false !!!");</code> then I need to add <code>throws Exception</code> to function definition and then I have to handle this everywhere I call <code>foo()</code>. I don't want to do that. How can I do this?</p>
