]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/nfs/exception.py
4 class NFSException(Exception):
5 def __init__(self
, errno
, err_msg
):
6 super(NFSException
, self
).__init
__(errno
, err_msg
)
14 class NFSInvalidOperation(NFSException
):
15 def __init__(self
, err_msg
):
16 super(NFSInvalidOperation
, self
).__init
__(-errno
.EINVAL
, err_msg
)
19 class NFSObjectNotFound(NFSException
):
20 def __init__(self
, err_msg
):
21 super(NFSObjectNotFound
, self
).__init
__(-errno
.ENOENT
, err_msg
)
24 class FSNotFound(NFSObjectNotFound
):
25 def __init__(self
, fs_name
):
26 super(FSNotFound
, self
).__init
__(f
'filesystem {fs_name} not found')
29 class ClusterNotFound(NFSObjectNotFound
):
31 super(ClusterNotFound
, self
).__init
__('cluster does not exist')