Returns a list of error messages that have been generated since the last call to GetErrorMessageList. If CatchExceptions is enabled and an API function does not return success, A call to this function will give a list of errors that may be responsible for the failure.

Return Value:

A list of error messages.

Interface Signature:

IList<string> GetErrorMessageList();


An example of how this function could be used is shown below.

namespace Example
{
   /// <summary>
   /// An simple example of how to utilize the API and get a reference to it
   /// </summary>
   public class ExampleClass
   {
       /// <summary>
       /// Run a calibration
       /// </summary>
       public static void Calibrate(string calName, string pnaName)
       {
           // Get a reference to the API interface
           AteSystems.InCal.IApi api = AteSystems.InCal.API.Initialize(@"C:\Temp\MyConfig.ini", catchExceptions:true);
           // Call the API function
           IList<string> errorList = api.Calibrate(calName, pnaName);
           foreach(string error in errorList)
           {
               Console.WriteLine(error);
           }
       }
   }
}