I decided that there are some errors that I do not want to access the browser error handler. But I still want to know about them. In my actual code, I have a function that stores errors in a hidden element, and ajax sends them to the database. The following is a simplified version of the try block:
try
{
newValueEvaled = eval(newValue);
}catch(err)
{
alert("Error caught: Line " + err.lineNumber + ((err.columnNumber != undefined)?', Column:' + err.columnNumber:"") + '\n' + err.message);
}
I also need columnNumber. Currently, it never exists, but somehow the browser error console has access to it. Can someone tell me how can I access it?
source
share