MCPcopy Index your code
hub / github.com/github/copilot-sdk / JsonRpcError

Class JsonRpcError

python/copilot/_jsonrpc.py:23–30  ·  view source on GitHub ↗

JSON-RPC error response

Source from the content-addressed store, hash-verified

21
22
23class JsonRpcError(Exception):
24 """JSON-RPC error response"""
25
26 def __init__(self, code: int, message: str, data: Any = None):
27 self.code = code
28 self.message = message
29 self.data = data
30 super().__init__(f"JSON-RPC Error {code}: {message}")
31
32
33class ProcessExitedError(Exception):

Callers 1

_handle_messageMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…