What is the other way to get the description of an error?
I know about err.number and err.description
There is another place where there is a description of an error in text format. I think it is a function.
I have seen it and don't remember it.
I noticed that sometimes the error message is different than err.description.
This code worked right from inside of UFT.
It's DescribeResult(Err). You can pass Err object or Err.Number.
Also you can use Err.Source to know the nature of the error.
Last edited by scsvel; 06-25-2015 at 12:02 PM.
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one. Automation Ecstasy
Does DescribeResult show the same as err.description?
For some errors both Err.Description and DescribeResult are same but different for some errors. For Ex. different information for below divide by zero error. Code: a = 10/0
a = 10/0
I tried it and saw that the messages are indeed different.