class ProcessExecuter::Runner
def raise_errors(result)
- Api: - private
Raises:
-
(ProcessExecuter::TimeoutError)
- If the command times out -
(ProcessExecuter::SignaledError)
- If the command was signaled -
(ProcessExecuter::FailedError)
- If the command failed
Returns:
-
(void)
-
def raise_errors(result) raise TimeoutError, result if result.timed_out? raise SignaledError, result if result.signaled? raise FailedError, result unless result.success? end