Exception: ClaudeAgentSDK::CLINotFoundError

Inherits:
CLIConnectionError show all
Defined in:
lib/claude_agent_sdk/errors.rb

Overview

Raised when Claude Code is not found or not installed

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Claude Code not found', cli_path: nil) ⇒ CLINotFoundError

Returns a new instance of CLINotFoundError.



15
16
17
18
# File 'lib/claude_agent_sdk/errors.rb', line 15

def initialize(message = 'Claude Code not found', cli_path: nil)
  message = "#{message}: #{cli_path}" if cli_path
  super(message)
end