Click or drag to resize

STARException Class

all the instrument's error will be in the exception using the try catch code, you can get the error, and perform the error handling
Inheritance Hierarchy
SystemObject
  SystemException
    Huarui.STARLineSTARException

Namespace:  Huarui.STARLine
Assembly:  SharpHamilton (in SharpHamilton.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public class STARException : Exception

The STARException type exposes the following members.

Constructors
  NameDescription
Public methodSTARException
STARException construction
Top
Properties
  NameDescription
Public propertyModuleErrors
Module errors from device
Top
Examples
C#
ErrorRecoveryOptions options = new ErrorRecoveryOptions();
options.Add(MainErrorEnum.NoTipError, new ErrorRecoveryOption() { Recovery = RecoveryAction.Cancel });
options.Add(MainErrorEnum.NotExecutedError, new ErrorRecoveryOption() { Recovery = RecoveryAction.Cancel });
try
{
    ML_STAR.Channel.PickupTip(cnts, options);
}
catch (STARException e)
{
    foreach (ModuleError err in e.ModuleErrors)
    {
        Console.WriteLine(err.Module + " " + err.MainError + ":" + err.SlaveError + " " + err.LabwareId + ", " + err.PositionId);
    }
}
See Also