Skip to content

CLINotFoundError

Base classes

Name Children Inherits
CLIConnectionError
clawd_code_sdk._errors
Raised when unable to connect to Claude Code.

⋔ Inheritance diagram

graph TD
  1208862374["_errors.CLINotFoundError"]
  1071211877["_errors.CLIConnectionError"]
  2055642102["_errors.ClaudeSDKError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  1071211877 --> 1208862374
  2055642102 --> 1071211877
  1615621424 --> 2055642102
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: CLIConnectionError

Raised when Claude Code is not found or not installed.

Source code in src/clawd_code_sdk/_errors.py
class CLINotFoundError(CLIConnectionError):
    """Raised when Claude Code is not found or not installed."""

    def __init__(self, message: str = "Claude Code not found", cli_path: str | None = None) -> None:
        if cli_path:
            message = f"{message}: {cli_path}"
        super().__init__(message)

:fa-brands-github: Show source on GitHub