Exception: ClaudeCode::CLINotFoundError

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

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.



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

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

Instance Attribute Details

#cli_pathObject (readonly)

Returns the value of attribute cli_path.



11
12
13
# File 'lib/claude_code/errors.rb', line 11

def cli_path
  @cli_path
end