Well readable error?
<p>If i have a c1.php</p>

<pre><code>&lt;?php
class C1 {
    function f1($value) {
        if($value == 'ok') {
            echo "OK!";
        } else {
            throw new Exception("WRONG!");
        }
    }
}
?&gt;
</code></pre>

<p>and index.php </p>

<pre><code>&lt;?php
require_once('c1.php');
$c = new C1();
$c-&gt;f1('ok');
$c-&gt;f1('asd');
?&gt;
</code></pre>

<p>Can anybody know, how to construct a well readable error message like "Error: you have wrong value in C:\xampp\htdocs\projekt\index.php: line 5" instead of tracktracing</p>

<pre><code>OK!
Fatal error: Uncaught exception 'Exception' with message 'WRONG!' in
C:\xampp\htdocs\projekt\c1.php:7 Stack trace: #0 
C:\xampp\htdocs\projekt\index.php(5): C1-&gt;f1('asd') #1 {main} thrown in
C:\xampp\htdocs\projekt\c1.php on line 7
</code></pre>

<p>that reading is a little difficult.</p>
