paulvinders
9 years agoContributor
How can I see the stacktrace when errors are catched using try catch finally?
Hi,
i'm calling a code sequence within a try-catch-finally block with TestExecute, e.g.:
function one()
{
try
{
// call a function 'abc' which has an object error
abc();
}
catch (exception)
{
Logger.Error("Message: " + exception.description);
}
finally
{
...
}
}
If an error occurs, I want to keep the prohram running and output the exception by using Logger.Error, but in the final logging, the Stacktrace / Additional Info tabs do not say where the original error occurred.
It says:
Test Unit Name Line No
Error Logger 48
I would expect something like:
Test Unit Name Line No
Error abc 5
Any ideas?
sincerely
Paul Vinders
SOPTIM AG
Germany