Exception: ClaudeCodeSDK::CLINotFoundError

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

Overview

Raised when Claude Code CLI is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CLINotFoundError.



14
15
16
17
# File 'lib/claude_code_sdk/errors.rb', line 14

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

Instance Attribute Details

#cli_pathObject (readonly)

Returns the value of attribute cli_path.



12
13
14
# File 'lib/claude_code_sdk/errors.rb', line 12

def cli_path
  @cli_path
end