]>
git.proxmox.com Git - ceph.git/blob - ceph/src/python-common/ceph/exceptions.py
1 class Error(Exception):
2 """ `Error` class, derived from `Exception` """
3 def __init__(self
, message
, errno
=None):
4 super(Exception, self
).__init
__(message
)
8 msg
= super(Exception, self
).__str
__()
11 return '[errno {0}] {1}'.format(self
.errno
, msg
)
14 class InvalidArgumentError(Error
):
19 """ `OSError` class, derived from `Error` """
23 class InterruptedOrTimeoutError(OSError):
24 """ `InterruptedOrTimeoutError` class, derived from `OSError` """
28 class PermissionError(OSError):
29 """ `PermissionError` class, derived from `OSError` """
33 class PermissionDeniedError(OSError):
34 """ deal with EACCES related. """
38 class ObjectNotFound(OSError):
39 """ `ObjectNotFound` class, derived from `OSError` """
43 class NoData(OSError):
44 """ `NoData` class, derived from `OSError` """
48 class ObjectExists(OSError):
49 """ `ObjectExists` class, derived from `OSError` """
53 class ObjectBusy(OSError):
54 """ `ObjectBusy` class, derived from `IOError` """
58 class IOError(OSError):
59 """ `ObjectBusy` class, derived from `OSError` """
63 class NoSpace(OSError):
64 """ `NoSpace` class, derived from `OSError` """
68 class RadosStateError(Error
):
69 """ `RadosStateError` class, derived from `Error` """
73 class IoctxStateError(Error
):
74 """ `IoctxStateError` class, derived from `Error` """
78 class ObjectStateError(Error
):
79 """ `ObjectStateError` class, derived from `Error` """
83 class LogicError(Error
):
84 """ `` class, derived from `Error` """
88 class TimedOut(OSError):
89 """ `TimedOut` class, derived from `OSError` """