MCPcopy Create free account
hub / github.com/instantdb/instant / __init__

Method __init__

client/packages/python/src/instantdb/_errors.py:16–24  ·  view source on GitHub ↗
(self, message: str, *, status: int, body: Any = None)

Source from the content-addressed store, hash-verified

14 trace_id: str | None
15
16 def __init__(self, message: str, *, status: int, body: Any = None) -> None:
17 super().__init__(message)
18 self.status = status
19 self.body = body
20 # Surface hint/trace_id as attributes (like JS), not just inside body.
21 self.hint = body.get("hint") if isinstance(body, dict) else None
22 self.trace_id = (
23 body.get("traceId") or body.get("trace-id") if isinstance(body, dict) else None
24 )

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected