MCPcopy
hub / github.com/Agenta-AI/agenta / ApiError

Class ApiError

sdk/agenta/client/backend/core/api_error.py:6–17  ·  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__(
11 self, *, status_code: typing.Optional[int] = None, body: typing.Any = None
12 ):
13 self.status_code = status_code
14 self.body = body
15
16 def __str__(self) -> str:
17 return f"status_code: {self.status_code}, body: {self.body}"

Callers 15

list_api_keysMethod · 0.50
create_api_keyMethod · 0.50
delete_api_keyMethod · 0.50
validate_api_keyMethod · 0.50
list_organizationsMethod · 0.50
create_organizationMethod · 0.50
get_own_orgMethod · 0.50
update_organizationMethod · 0.50
resend_invitationMethod · 0.50
accept_invitationMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected