Exception: RubyClaude::ExecutionError
- Defined in:
- lib/ruby_claude/errors.rb
Overview
Raised on a non-zero exit status, or on a result payload that reports is_error: true. Carries the exit status and captured stderr.
Instance Attribute Summary collapse
-
#status ⇒ Integer?
readonly
The child process exit status, when known.
-
#stderr ⇒ String?
readonly
Captured standard error output, when available.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, stderr: nil) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(message = nil, status: nil, stderr: nil) ⇒ ExecutionError
Returns a new instance of ExecutionError.
33 34 35 36 37 |
# File 'lib/ruby_claude/errors.rb', line 33 def initialize( = nil, status: nil, stderr: nil) @status = status @stderr = stderr super() end |
Instance Attribute Details
#status ⇒ Integer? (readonly)
Returns the child process exit status, when known.
25 26 27 |
# File 'lib/ruby_claude/errors.rb', line 25 def status @status end |
#stderr ⇒ String? (readonly)
Returns captured standard error output, when available.
28 29 30 |
# File 'lib/ruby_claude/errors.rb', line 28 def stderr @stderr end |