Why can't I throw an exception while using the ternary operator
<p>This doesn't compile and gives the following error : <code>Illegal start of expression</code>. Why?</p>

<pre><code>public static AppConfig getInstance() {
        return mConfig != null ? mConfig : (throw new RuntimeException("error"));
    }
</code></pre>
