Exception: Aidp::Interfaces::CommandExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Aidp::Interfaces::CommandExecutionError
- Defined in:
- lib/aidp/interfaces/command_executor_interface.rb
Overview
Error raised when command execution fails.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(command:, original_error:) ⇒ CommandExecutionError
constructor
A new instance of CommandExecutionError.
Constructor Details
#initialize(command:, original_error:) ⇒ CommandExecutionError
Returns a new instance of CommandExecutionError.
100 101 102 103 104 |
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 100 def initialize(command:, original_error:) @command = command @original_error = original_error super("Command '#{command}' failed: #{original_error.}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
98 99 100 |
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 98 def command @command end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
98 99 100 |
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 98 def original_error @original_error end |