MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / CmdopError

Class CmdopError

python/src/cmdop/errors.py:20–38  ·  view source on GitHub ↗

Base class for every SDK error.

Source from the content-addressed store, hash-verified

18
19
20class CmdopError(Exception):
21 """Base class for every SDK error."""
22
23 #: True for transient failures worth retrying (timeouts). Subclasses override.
24 retryable: bool = False
25
26 def __init__(
27 self,
28 message: str,
29 *,
30 status: int | None = None,
31 code: str | None = None,
32 body: Any = None,
33 ) -> None:
34 super().__init__(message)
35 self.message = message
36 self.status = status
37 self.code = code
38 self.body = body
39
40
41class AuthError(CmdopError):

Callers 1

map_core_errorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected