Method
__init__
(self, message: str, *, response: httpx.Response, body: object | None)
Source from the content-addressed store, hash-verified
| 98 | request_id: str | None |
| 99 | |
| 100 | def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None: |
| 101 | super().__init__(message, response.request, body=body) |
| 102 | self.response = response |
| 103 | self.status_code = response.status_code |
| 104 | self.request_id = response.headers.get("x-request-id") |
| 105 | |
| 106 | |
| 107 | class APIConnectionError(APIError): |
Callers
nothing calls this directly
Tested by
no test coverage detected