Exception: ClaudeSDK::CLINotFoundError
- Inherits:
-
CLIConnectionError
- Object
- StandardError
- Error
- CLIConnectionError
- ClaudeSDK::CLINotFoundError
- Defined in:
- lib/claude_sdk/errors.rb
Overview
Raised when Claude Code is not found or not installed
Instance Attribute Summary collapse
-
#cli_path ⇒ String?
readonly
The path where Claude Code was expected.
Instance Method Summary collapse
-
#initialize(message: "Claude Code not found", cli_path: nil) ⇒ CLINotFoundError
constructor
A new instance of CLINotFoundError.
Constructor Details
#initialize(message: "Claude Code not found", cli_path: nil) ⇒ CLINotFoundError
Returns a new instance of CLINotFoundError.
24 25 26 27 28 |
# File 'lib/claude_sdk/errors.rb', line 24 def initialize(message: "Claude Code not found", cli_path: nil) @cli_path = cli_path = "#{message}: #{cli_path}" if cli_path super() end |
Instance Attribute Details
#cli_path ⇒ String? (readonly)
Returns the path where Claude Code was expected.
20 21 22 |
# File 'lib/claude_sdk/errors.rb', line 20 def cli_path @cli_path end |