Re: Clueless about error
Just to add:
picture the following stack trace:
NumberFormatException java.util.ArrayList
SQLException lsf.com.teste.Class, line 50
I found impossible to get the messages e lineNumbers that relate specifically to our company packages. Since the project deals with lots of developers, this approach has been proven useful to us.
To get it we perform an iteration. Do you see any problems with that? Below goes the example
function errorHandler(msg, ex)
{
if(ex.stackTrace)
{
var stack = ex.stackTrace;
//looking for the specific lsf root package.
for(var i = 0 ; i < stack.length && found = false ; i++)
{
if(stack[i].className.search(/lsf/) >= 0)
{
msgDWR.metodo = stack[i].methodName + "|" + stack[i].lineNumber;
msgDWR.classe = stack[i].className;
found = true;
}
}
}
//do something with msgDWR
}