using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataEntity.Sockets.Base { /// /// 驱动端 /// public class ErrorResult { /// /// 错误编号 /// public string error_code { get; set; } /// /// error: troubleshoot /// 0 – No processing 无需处理 /// 1 – ignore 选择忽略该错误 /// 2 – retry 选择重试该步骤 /// 3 – ignore | retry /// 4 – abort 选择终止该步骤 /// 5 – ignore | abort /// 6 – retry | abort /// 7 – ignore | retry | abort /// public int troubleshoot { get; set; } /// /// 错误描述 /// public string error_text { get; set; } /// /// 处理类型(0不处理,1中控处理,2发送源处理,3设备底层处理) /// public string dealwithtype { get; set; } } /// /// 错误处理方式枚举 /// public enum TroubleshootEnum { /// /// NoProcessing /// [Description("NoProcessing")] NoProcessing = 0, /// /// Ignore /// [Description("Ignore")] Ignore = 1, /// /// Retry /// [Description("Retry")] Retry = 2, /// /// IgnoreAndRetry /// [Description("IgnoreAndRetry")] IgnoreAndRetry = 3, /// /// Abort /// [Description("Abort")] Abort = 4, /// /// IgnoreAndAbort /// [Description("IgnoreAndAbort")] IgnoreAndAbort = 5, /// /// RetryAndAbort /// [Description("RetryAndAbort")] RetryAndAbort = 6, /// /// IgnoreAndRetryAndAbort /// [Description("IgnoreAndRetryAndAbort")] IgnoreAndRetryAndAbort = 7, } }