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

Method __init__

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

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

(self, msg, path_to_item=None)

Source from the content-addressed store, hash-verified

80
81class ApiKeyError(OpenApiException, KeyError):
82 def __init__(self, msg, path_to_item=None):
83 """
84 Args:
85 msg (str): the exception message
86
87 Keyword Args:
88 path_to_item (None/list) the path to the exception in the
89 received_data dict
90 """
91 self.path_to_item = path_to_item
92 full_msg = msg
93 if path_to_item:
94 full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
95 super(ApiKeyError, self).__init__(full_msg)
96
97
98class ApiException(OpenApiException):

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

render_pathFunction · 0.85

Tested by

no test coverage detected