Exception: Ace::Review::Errors::CommandTimeoutError
- Defined in:
- lib/ace/review/errors.rb
Overview
Raised when a subprocess command times out
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#timeout_seconds ⇒ Object
readonly
Returns the value of attribute timeout_seconds.
Instance Method Summary collapse
-
#initialize(command, timeout_seconds) ⇒ CommandTimeoutError
constructor
A new instance of CommandTimeoutError.
Constructor Details
#initialize(command, timeout_seconds) ⇒ CommandTimeoutError
Returns a new instance of CommandTimeoutError.
131 132 133 134 135 136 |
# File 'lib/ace/review/errors.rb', line 131 def initialize(command, timeout_seconds) @command = command @timeout_seconds = timeout_seconds = "Command '#{command}' timed out after #{timeout_seconds} seconds." super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
129 130 131 |
# File 'lib/ace/review/errors.rb', line 129 def command @command end |
#timeout_seconds ⇒ Object (readonly)
Returns the value of attribute timeout_seconds.
129 130 131 |
# File 'lib/ace/review/errors.rb', line 129 def timeout_seconds @timeout_seconds end |