MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / APIError

Class APIError

tests/utils/api_client.py:17–23  ·  view source on GitHub ↗

Exception raised when API returns an error.

Source from the content-addressed store, hash-verified

15
16
17class APIError(Exception):
18 """Exception raised when API returns an error."""
19
20 def __init__(self, code: str, message: str):
21 self.code = code
22 self.message = message
23 super().__init__(f"{code}: {message}")
24
25
26class SerialStudioClient:

Callers 1

commandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected