PHP cannot acess protected property error
<p>PHP Fatal error:  Cannot access protected property Exception::$message in /web/index.php on line 23</p>

<p>On line 23 I have,</p>

<pre><code>echo '&lt;?xml version=\'1.0\'?&gt;&lt;error-response status="error"&gt;
&lt;message&gt;&lt;![CDATA['.$e-&gt;message.']]&gt;&lt;/message&gt;
&lt;/error-response&gt;';
</code></pre>

<p>I can't see anything wrong with this, but this I see the above exception occasionally in the logs. What's wrong?</p>
