MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

61 status_code: int
62
63 def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None:
64 super().__init__(message, response.request, body=body)
65 self.response = response
66 self.status_code = response.status_code
67
68
69class APIConnectionError(APIError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected