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

Class ApiKeyError

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

Source from the content-addressed store, hash-verified

79
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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected