File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -241,14 +241,16 @@ class EtcdDirNotEmpty(EtcdValueError):
241241 """
242242 pass
243243
244+
244245class EtcdLockExpired (EtcdException ):
245246 """
246247 Our lock apparently expired while we were trying to acquire it.
247248 """
249+ pass
248250
249251
250252class EtcdError (object ):
251- # See https://github.com/coreos/etcd/blob/master/Documentation/errorcode.md
253+ # See https://github.com/coreos/etcd/blob/master/Documentation/v2/ errorcode.md
252254 error_exceptions = {
253255 100 : EtcdKeyNotFound ,
254256 101 : EtcdCompareFailed ,
@@ -262,7 +264,7 @@ class EtcdError(object):
262264 # 109: Non-public: existing peer addr.
263265 110 : EtcdInsufficientPermissions ,
264266
265- 200 : EtcdValueError ,
267+ 200 : EtcdValueError , # Not part of v2
266268 201 : EtcdValueError ,
267269 202 : EtcdValueError ,
268270 203 : EtcdValueError ,
You can’t perform that action at this time.
0 commit comments