Exception: ProcessExecuter::Command::TimeoutError
- Inherits:
-
SignaledError
- Object
- StandardError
- Error
- CommandError
- SignaledError
- ProcessExecuter::Command::TimeoutError
- Defined in:
- lib/process_executer/command/errors.rb
Overview
Raised when the command takes longer than the configured timeout
Instance Attribute Summary collapse
-
#timeout_duration ⇒ Numeric
readonly
The amount of time the subprocess was allowed to run before being killed.
Attributes inherited from CommandError
Instance Method Summary collapse
-
#initialize(result, timeout_duration) ⇒ TimeoutError
constructor
Create a TimeoutError object.
Methods inherited from CommandError
Constructor Details
#initialize(result, timeout_duration) ⇒ TimeoutError
Create a TimeoutError object
144 145 146 147 |
# File 'lib/process_executer/command/errors.rb', line 144 def initialize(result, timeout_duration) @timeout_duration = timeout_duration super(result) end |
Instance Attribute Details
#timeout_duration ⇒ Numeric (readonly)
The amount of time the subprocess was allowed to run before being killed
159 160 161 |
# File 'lib/process_executer/command/errors.rb', line 159 def timeout_duration @timeout_duration end |