Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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:
Callers
1
test_from_jsonrpc_error_preserves_code_message_and_data
Function · 0.80
Calls
1
from_error_data
Method · 0.80
Tested by
1
test_from_jsonrpc_error_preserves_code_message_and_data
Function · 0.64