VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Error Parsing

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?

0 Kudos
Message 1 of 3
(5,825 Views)

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; }

    }

}

0 Kudos
Message 2 of 3
(5,822 Views)

Here is an example TS .NET Call which gets the resolved error message property from a returned Veristand Error Object:

vserrorhandling.jpg

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 3 of 3
(5,752 Views)