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

Method __init__

python-client/deutschland/smard/exceptions.py:99–109  ·  view source on GitHub ↗
(self, status=None, reason=None, http_resp=None)

Source from the content-addressed store, hash-verified

97
98class ApiException(OpenApiException):
99 def __init__(self, status=None, reason=None, http_resp=None):
100 if http_resp:
101 self.status = http_resp.status
102 self.reason = http_resp.reason
103 self.body = http_resp.data
104 self.headers = http_resp.getheaders()
105 else:
106 self.status = status
107 self.reason = reason
108 self.body = None
109 self.headers = None
110
111 def __str__(self):
112 """Custom error messages for exception"""

Callers

nothing calls this directly

Calls 1

getheadersMethod · 0.80

Tested by

no test coverage detected