public static void throwOperator(int err, string logicalName) { if (HalconAPI.IsFailure(err)) { throw new HOperatorException(err, HalconAPI.GetErrorMessage(err) + " in operator " + logicalName); } }
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); } }
public static void throwInfo(int err, string sInfo) { throw new HOperatorException(err, sInfo + ":\n" + HalconAPI.GetErrorMessage(err) + "\n"); }
public new string GetErrorMessage() { return(HalconAPI.GetErrorMessage(this.GetErrorCode())); }
public HOperatorException(int err, string sInfo, Exception inner) : base(err, sInfo == "" ? HalconAPI.GetErrorMessage(err) : sInfo, inner) { }