class ProcessExecuter::Runner
def raise_pipe_error(command, option_key, pipe)
- Api: - private
Returns:
-
(void)
- This method always raises an error
Raises:
-
(ProcessExecuter::ProcessIOError)
-
Parameters:
-
pipe
(ProcessExecuter::MonitoredPipe
) -- The pipe that raised the exception -
option_key
(Symbol
) -- The name of the pipe that raised the exception -
command
(Array
) -- The command that was executed
def raise_pipe_error(command, option_key, pipe) return unless pipe.exception error = ProcessExecuter::ProcessIOError.new("Pipe Exception for #{command}: #{option_key.inspect}") raise(error, cause: pipe.exception) end