Exception: Aidp::Interfaces::CommandExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aidp/interfaces/command_executor_interface.rb

Overview

Error raised when command execution fails.

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}")
end

Instance Attribute Details

#commandObject (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_errorObject (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