Exception: Aidp::Interfaces::CommandTimeoutError
- Inherits:
-
StandardError
- Object
- StandardError
- Aidp::Interfaces::CommandTimeoutError
- Defined in:
- lib/aidp/interfaces/command_executor_interface.rb
Overview
Error raised when a command times out.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(command:, timeout:) ⇒ CommandTimeoutError
constructor
A new instance of CommandTimeoutError.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
87 88 89 |
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 87 def command @command end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
87 88 89 |
# File 'lib/aidp/interfaces/command_executor_interface.rb', line 87 def timeout @timeout end |