MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / to_payload

Method to_payload

app/errors.py:33–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.details = details or {}
32
33 def to_payload(self) -> dict[str, Any]:
34 return {
35 "ok": False,
36 "error": {
37 "code": self.code,
38 "message": self.message,
39 "details": self.details,
40 },
41 }
42
43
44class BadRequestError(GlmDeskError):

Callers 2

handle_aegisflow_errorFunction · 0.45
handle_unexpected_errorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected