示例#1
0
 public static void throwOperator(int err, string logicalName)
 {
     if (HalconAPI.IsFailure(err))
     {
         throw new HOperatorException(err, HalconAPI.GetErrorMessage(err) + " in operator " + logicalName);
     }
 }
示例#2
0
 internal static void throwOperator(int err, int procIndex)
 {
     if (HalconAPI.IsFailure(err))
     {
         string logicalName = HalconAPI.GetLogicalName(procIndex);
         throw new HOperatorException(err, HalconAPI.GetErrorMessage(err) + " in operator " + logicalName);
     }
 }
示例#3
0
 public static void throwInfo(int err, string sInfo)
 {
     throw new HOperatorException(err, sInfo + ":\n" + HalconAPI.GetErrorMessage(err) + "\n");
 }
示例#4
0
 public new string GetErrorMessage()
 {
     return(HalconAPI.GetErrorMessage(this.GetErrorCode()));
 }
示例#5
0
 public HOperatorException(int err, string sInfo, Exception inner)
     : base(err, sInfo == "" ? HalconAPI.GetErrorMessage(err) : sInfo, inner)
 {
 }