I'm using a 3rd-party .NET library that throws .NET Exceptions for errors. As it turns out, the Message property of the Exception does *not* contain the useful information (the developer of the library gave me the technical reason for this, it's due to the remoting wrapper, but that's not relevant).
What I need to do is the Test Stand equivalent of calling ToString() on the Exception instance. For example, the below C# snippet shows what I need to do:
try {
library.Function();
}
catch (Exception e)
{
// This is what I need to do in TestStand, it gets me the necessary error text
Console.WriteLine(e.ToString()); // Note: the 'e.ToString()' is the default, this could just be (e)
// This is what TestStand currently does, which loses necessary error text
Console.WriteLine(e.Message);
}
Does anybody have a suggestion on how to make Test Stand *not* use the 'Message' property but to instead use the ToString() method?
Thanks in advance!
Steve