ClaudeSDKError
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| CLIConnectionError clawd_code_sdk._errors Raised when unable to connect to Claude Code. |
||
| ProcessError clawd_code_sdk._errors Raised when the CLI process fails. |
||
| CLIJSONDecodeError clawd_code_sdk._errors Raised when unable to decode JSON from CLI output. |
||
| MessageParseError clawd_code_sdk._errors Raised when unable to parse a message from CLI output. |
||
| APIError clawd_code_sdk._errors Base exception for Anthropic API errors. |
||
| ControlRequestError clawd_code_sdk._errors Raised when a control protocol request fails. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Exception builtins Common base class for all non-exit exceptions. |
⋔ Inheritance diagram¶
graph TD
2055642102["_errors.ClaudeSDKError"]
1615621424["builtins.Exception"]
3224121899["builtins.BaseException"]
2751680898["builtins.object"]
1615621424 --> 2055642102
3224121899 --> 1615621424
2751680898 --> 3224121899