McpError
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ControlRequestError clawd_code_sdk._errors Raised when a control protocol request fails. |
⋔ Inheritance diagram¶
graph TD
580038451["_errors.McpError"]
627375786["_errors.ControlRequestError"]
2055642102["_errors.ClaudeSDKError"]
1615621424["builtins.Exception"]
3224121899["builtins.BaseException"]
2751680898["builtins.object"]
627375786 --> 580038451
2055642102 --> 627375786
1615621424 --> 2055642102
3224121899 --> 1615621424
2751680898 --> 3224121899
🛈 DocStrings¶
Bases: ControlRequestError
Raised when an MCP-related control request fails.
Attributes:
| Name | Type | Description |
|---|---|---|
error_code |
The JSON-RPC error code from the MCP server. |
|
server_name |
The name of the MCP server, if known. |