MCPcopy Create free account
hub / github.com/bundesAPI/smard-api / __init__

Method __init__

python-client/deutschland/smard/exceptions.py:45–59  ·  view source on GitHub ↗

Args: msg (str): the exception message Keyword Args: path_to_item (list) the path to the exception in the received_data dict. None if unset

(self, msg, path_to_item=None)

Source from the content-addressed store, hash-verified

43
44class ApiValueError(OpenApiException, ValueError):
45 def __init__(self, msg, path_to_item=None):
46 """
47 Args:
48 msg (str): the exception message
49
50 Keyword Args:
51 path_to_item (list) the path to the exception in the
52 received_data dict. None if unset
53 """
54
55 self.path_to_item = path_to_item
56 full_msg = msg
57 if path_to_item:
58 full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
59 super(ApiValueError, self).__init__(full_msg)
60
61
62class ApiAttributeError(OpenApiException, AttributeError):

Callers

nothing calls this directly

Calls 2

render_pathFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected