How to retrieve try/catch error
<p>how can I find the error</p>

<pre><code>try {
    undef
} catch (e){
    console.log(e)
    console.dir(e)
}
</code></pre>

<p>the information bust be there somewhere, because the console.log (in firebug) includes:</p>

<pre><code>ReferenceError: undef is not defined
</code></pre>

<p>but when I browse the <code>e</code> object, I can't find it.</p>

<p>How do I find out what the error is programmatically, so I can handle the error accordingly?</p>

<p>Edit:
<img src="http://i.stack.imgur.com/ihaRw.png" alt="screenshot showing error object"></p>
