Exception: ClaudeCode::ProcessError
- Inherits:
-
ClaudeSDKError
- Object
- StandardError
- ClaudeSDKError
- ClaudeCode::ProcessError
- Defined in:
- lib/claude_code/errors.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(message = "Process failed", exit_code: nil, stderr: nil) ⇒ ProcessError
constructor
A new instance of ProcessError.
Constructor Details
#initialize(message = "Process failed", exit_code: nil, stderr: nil) ⇒ ProcessError
Returns a new instance of ProcessError.
23 24 25 26 27 28 29 30 31 |
# File 'lib/claude_code/errors.rb', line 23 def initialize( = "Process failed", exit_code: nil, stderr: nil) @exit_code = exit_code @stderr = stderr = "#{} (exit code: #{exit_code})" if exit_code = "#{}\nError output: #{stderr}" if stderr super() end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
21 22 23 |
# File 'lib/claude_code/errors.rb', line 21 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
21 22 23 |
# File 'lib/claude_code/errors.rb', line 21 def stderr @stderr end |