MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / __init__

Method __init__

src/anthropic/_exceptions.py:64–68  ·  view source on GitHub ↗
(self, message: str, *, response: httpx.Response, body: object | None)

Source from the content-addressed store, hash-verified

62 request_id: str | None
63
64 def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None:
65 super().__init__(message, response.request, body=body)
66 self.response = response
67 self.status_code = response.status_code
68 self.request_id = response.headers.get("request-id")
69
70
71class APIConnectionError(APIError):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected