Exception: Aidp::Interfaces::CommandTimeoutError

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

Overview

Error raised when a command times out.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command:, timeout:) ⇒ CommandTimeoutError

Returns a new instance of CommandTimeoutError.



89
90
91
92
93
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 89

def initialize(command:, timeout:)
  @command = command
  @timeout = timeout
  super("Command '#{command}' timed out after #{timeout} seconds")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



87
88
89
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 87

def command
  @command
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



87
88
89
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 87

def timeout
  @timeout
end