schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace DataEntity.Sockets.Base
{
    /// <summary>
    /// 驱动端
    /// </summary>
    public class ErrorResult
    {
        /// <summary>
        /// 错误编号
        /// </summary>
        public string error_code { get; set; }
 
        /// <summary>
        /// error: troubleshoot
        /// 0 – No processing        无需处理
        /// 1 – ignore 选择忽略该错误
        /// 2 – retry 选择重试该步骤
        /// 3 – ignore | retry 
        /// 4 – abort 选择终止该步骤
        /// 5 – ignore | abort
        /// 6 – retry | abort
        /// 7 – ignore | retry | abort
        /// </summary>
        public int troubleshoot { get; set; }
        /// <summary>
        /// 错误描述
        /// </summary>
        public string error_text { get; set; }
 
        /// <summary>
        /// 处理类型(0不处理,1中控处理,2发送源处理,3设备底层处理)
        /// </summary>
        public string dealwithtype { get; set; }
    }
 
    /// <summary>
    /// 错误处理方式枚举
    /// </summary>
    public enum TroubleshootEnum
    {
        /// <summary>
        /// NoProcessing
        /// </summary>
        [Description("NoProcessing")]
        NoProcessing = 0,
 
        /// <summary>
        /// Ignore
        /// </summary>
        [Description("Ignore")]
        Ignore = 1,
 
        /// <summary>
        /// Retry
        /// </summary>
        [Description("Retry")]
        Retry = 2,
 
        /// <summary>
        /// IgnoreAndRetry
        /// </summary>
        [Description("IgnoreAndRetry")]
        IgnoreAndRetry = 3,
 
        /// <summary>
        /// Abort
        /// </summary>
        [Description("Abort")]
        Abort = 4,
 
        /// <summary>
        /// IgnoreAndAbort
        /// </summary>
        [Description("IgnoreAndAbort")]
        IgnoreAndAbort = 5,
 
        /// <summary>
        /// RetryAndAbort
        /// </summary>
        [Description("RetryAndAbort")]
        RetryAndAbort = 6,
 
        /// <summary>
        /// IgnoreAndRetryAndAbort
        /// </summary>
        [Description("IgnoreAndRetryAndAbort")]
        IgnoreAndRetryAndAbort = 7,
    }
}