]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/volumes/fs/exception.py
de0b19109f3546c43e752aff9b58f82b9101f909
1 class VolumeException(Exception):
2 def __init__(self
, error_code
, error_message
):
3 self
.errno
= error_code
4 self
.error_str
= error_message
7 return self
.errno
, "", self
.error_str
10 return "{0} ({1})".format(self
.errno
, self
.error_str
)
12 class MetadataMgrException(Exception):
13 def __init__(self
, error_code
, error_message
):
14 self
.errno
= error_code
15 self
.error_str
= error_message
18 return "{0} ({1})".format(self
.errno
, self
.error_str
)
20 class IndexException(Exception):
21 def __init__(self
, error_code
, error_message
):
22 self
.errno
= error_code
23 self
.error_str
= error_message
26 return "{0} ({1})".format(self
.errno
, self
.error_str
)
28 class OpSmException(Exception):
29 def __init__(self
, error_code
, error_message
):
30 self
.errno
= error_code
31 self
.error_str
= error_message
34 return "{0} ({1})".format(self
.errno
, self
.error_str
)
36 class NotImplementedException(Exception):