-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathErrorCode.cs
97 lines (81 loc) · 2.07 KB
/
ErrorCode.cs
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
97
#if NET45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#endif
namespace EtcdNet
{
/// <summary>
/// error code in key space '/v2/keys'
/// https://github.com/coreos/etcd/blob/master/Documentation/errorcode.md
/// </summary>
public enum ErrorCode
{
/// <summary>
/// Key not found
/// </summary>
KeyNotFound = 100,
/// <summary>
/// Compare failed
/// </summary>
TestFailed = 101,
/// <summary>
/// Not a file
/// </summary>
NotFile = 102,
/// <summary>
/// Not a directory
/// </summary>
NotDir = 104,
/// <summary>
/// Key already exists
/// </summary>
NodeExist = 105,
/// <summary>
/// Root is read only
/// </summary>
RootReadOnly = 107,
/// <summary>
/// Directory not empty
/// </summary>
DirNotEmpty = 108,
/// <summary>
/// PrevValue is Required in POST form
/// </summary>
PrevValueRequired = 201,
/// <summary>
/// The given TTL in POST form is not a number
/// </summary>
TTLNaN = 202,
/// <summary>
/// The given index in POST form is not a number
/// </summary>
IndexNaN = 203,
/// <summary>
/// Invalid field
/// </summary>
InvalidField = 209,
/// <summary>
/// Invalid POST form
/// </summary>
InvalidForm = 210,
/// <summary>
/// Raft Internal Error
/// </summary>
RaftInternal = 300,
/// <summary>
/// During Leader Election
/// </summary>
LeaderElect = 301,
/// <summary>
/// watcher is cleared due to etcd recovery
/// </summary>
WatcherCleared = 400,
/// <summary>
/// The event in requested index is outdated and cleared
/// </summary>
EventIndexCleared = 401,
}
}