MCPcopy Create free account
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 code: str = "internal",
19 status: int | None = None,
20 retryable: bool | None = None,
21 details: Any = None,
22 ) -> None:
23 super().__init__(message)
24 self.message = message
25 self.code = code
26 self.status = status
27 self.details = details
28 if retryable is not None:
29 self.retryable = retryable
30
31
32class AuthError(CmdopError):
33 pass
34
35
36class PermissionError(CmdopError): # noqa: A001
37 pass
38
39
40class NotFoundError(CmdopError):
41 pass

Callers 1

map_core_errorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected