09-27-2012 06:21 AM
I'm using TestStand to make VeriStand .NET API calls. Some of the return values are of type "Object Reference (NationalInstruments.VeriStand.Error)". Can someone show me the proper way to parse this error object in TestStand?
09-27-2012 06:34 AM
The meta-class information is:
namespace NationalInstruments.VeriStand
{
[Serializable]
public class Error
{
public Error();
public Error(Exception e);
public Error(uint Code);
public Error(uint code, string message);
public Error(uint code, string message, string resolvedError);
public static Error operator |(Error err1, Error err2);
public static implicit operator uint(Error error);
public static implicit operator bool(Error error);
public static implicit operator Error(uint x);
public uint Code { get; }
public bool IsError { get; }
public string Message { get; }
public string ResolvedErrorMessage { get; }
}
}
10-18-2012 03:57 PM
Here is an example TS .NET Call which gets the resolved error message property from a returned Veristand Error Object: