Exception: ClaudeCodeSDK::CLINotFoundError
- Inherits:
-
CLIConnectionError
- Object
- StandardError
- Error
- CLIConnectionError
- ClaudeCodeSDK::CLINotFoundError
- Defined in:
- lib/claude_code_sdk/errors.rb
Overview
Raised when Claude Code CLI is not found
Instance Attribute Summary collapse
-
#cli_path ⇒ Object
readonly
Returns the value of attribute cli_path.
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.
14 15 16 17 |
# File 'lib/claude_code_sdk/errors.rb', line 14 def initialize( = "Claude Code not found", cli_path: nil) @cli_path = cli_path super(cli_path ? "#{}: #{cli_path}" : ) end |
Instance Attribute Details
#cli_path ⇒ Object (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 |