MCPcopy Create free account
hub / github.com/ceph/ceph / SpecValidationError

Class SpecValidationError

src/python-common/ceph/deployment/hostspec.py:37–46  ·  view source on GitHub ↗

Defining an exception here is a bit problematic, cause you cannot properly catch it, if it was raised in a different mgr module.

Source from the content-addressed store, hash-verified

35
36
37class SpecValidationError(Exception):
38 """
39 Defining an exception here is a bit problematic, cause you cannot properly catch it,
40 if it was raised in a different mgr module.
41 """
42 def __init__(self,
43 msg: str,
44 errno: int = -errno.EINVAL):
45 super(SpecValidationError, self).__init__(msg)
46 self.errno = errno
47
48
49class HostSpec(object):

Callers 15

innerFunction · 0.90
filter_hostsMethod · 0.90
to_host_patternMethod · 0.90
validateMethod · 0.90
from_stringMethod · 0.90
from_jsonMethod · 0.90
validateMethod · 0.90
validateMethod · 0.90
from_jsonMethod · 0.90
from_general_argsMethod · 0.90
_clsMethod · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected