Try Catch not working?
<p>I cannot make <code>try</code> work. I tried this:</p>

<pre><code>try {
    echo 1/0;
    } catch (Exception $e) {
    echo 'Caught exception: ',  $e-&gt;getMessage(), "\n";
    }
</code></pre>

<p>Which results on the error:</p>

<pre><code>Warning: Division by zero in /var/www/vhosts/saliganando.com/webs/momemi/apis/interpret-bot.php on line 6 
</code></pre>

<p>I tried modifying error_reporting() and ini_set() but I have only managed to either remove the warning or display it, but 'Caught exception...' is never shown.</p>

<p>What am I doing wrong?</p>
