Skip to content

CLIJSONDecodeError

Base classes

Name Children Inherits
ClaudeSDKError
clawd_code_sdk._errors
Base exception for all Claude SDK errors.

⋔ Inheritance diagram

graph TD
  2454932557["_errors.CLIJSONDecodeError"]
  2055642102["_errors.ClaudeSDKError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  2055642102 --> 2454932557
  1615621424 --> 2055642102
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: ClaudeSDKError

Raised when unable to decode JSON from CLI output.

Source code in src/clawd_code_sdk/_errors.py
class CLIJSONDecodeError(ClaudeSDKError):
    """Raised when unable to decode JSON from CLI output."""

    def __init__(self, line: str, original_error: Exception) -> None:
        self.line = line
        self.original_error = original_error
        super().__init__(f"Failed to decode JSON: {line[:100]}...")

:fa-brands-github: Show source on GitHub