MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / ApiError

Class ApiError

client-libs/python/openpipe/api_client/core/api_error.py:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class ApiError(Exception):
7 status_code: typing.Optional[int]
8 body: typing.Any
9
10 def __init__(self, *, status_code: typing.Optional[int] = None, body: typing.Any = None):
11 self.status_code = status_code
12 self.body = body
13
14 def __str__(self) -> str:
15 return f"status_code: {self.status_code}, body: {self.body}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected