MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / from_jsonrpc_error

Method from_jsonrpc_error

src/mcp/shared/exceptions.py:44–45  ·  view source on GitHub ↗
(cls, error: JSONRPCError)

Source from the content-addressed store, hash-verified

42
43 @classmethod
44 def from_jsonrpc_error(cls, error: JSONRPCError) -> MCPError:
45 return cls.from_error_data(error.error)
46
47 @classmethod
48 def from_error_data(cls, error: ErrorData) -> MCPError:

Calls 1

from_error_dataMethod · 0.80