diff options
Diffstat (limited to 'src/pybind/rados.py')
-rw-r--r-- | src/pybind/rados.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pybind/rados.py b/src/pybind/rados.py index d977c1a298a..0977bd08bce 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -67,6 +67,10 @@ class LogicError(Error): """ `` class, derived from `Error` """ pass +class TimedOut(Error): + """ `TimedOut` class, derived from `Error` """ + pass + def make_ex(ret, msg): """ Translate a librados return code into an exception. @@ -85,7 +89,8 @@ def make_ex(ret, msg): errno.ENOSPC : NoSpace, errno.EEXIST : ObjectExists, errno.ENODATA : NoData, - errno.EINTR : InterruptedOrTimeoutError + errno.EINTR : InterruptedOrTimeoutError, + errno.ETIMEDOUT : TimedOut } ret = abs(ret) if ret in errors: |