ErrorCodeConst.cs
1.79 KB
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHECS.Application.Error
{
/// <summary>
/// 对应到数据库里面的错位code
/// </summary>
public enum ErrorCodeConst
{
/// <summary>
/// 正确
/// </summary>
[Description("正确")]
Correct,
#region 网络
/// <summary>
/// 接口请求时上游系统返回操作失败
/// </summary>
[Description("接口请求时上游系统返回操作失败")]
Net_E0001,
/// <summary>
/// 接口请求时上游系统返回调用失败
/// </summary>
[Description("接口请求时上游系统返回调用失败")]
Net_E0002,
/// <summary>
/// 接口请求发生异常
/// </summary>
[Description("接口请求发生异常")]
Net_E0003,
#endregion
#region 数据库
/// <summary>
/// 数据库访问异常
/// </summary>
[Description("数据库访问异常")]
DEZ0001,
/// <summary>
/// 未查询到数据
/// </summary>
[Description("未查询到数据")]
QEZ0001,
#endregion
#region 用户权限
[Description("")]
PEZ0001,
[Description("Error")]
PEZ0002,
#endregion
#region 设备
/// <summary>
/// 校验不通过 -- 设备类型有对应设备,在设备没有删除之前,不予删除
/// </summary>
[Description("校验不通过")]
EQ_E0001,
PLC_E0003,
EQ_E0002,
PLC_E0001,
PLC_E0004,
Exe_E0001,
#endregion
}
}