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

Class APIResponseValidationError

src/opencode_ai/_exceptions.py:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class APIResponseValidationError(APIError):
48 response: httpx.Response
49 status_code: int
50
51 def __init__(self, response: httpx.Response, body: object | None, *, message: str | None = None) -> None:
52 super().__init__(message or "Data returned by API invalid for expected schema.", response.request, body=body)
53 self.response = response
54 self.status_code = response.status_code
55
56
57class APIStatusError(APIError):

Callers 2

_parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected