Class: ProcessExecuter::TimeoutError

Inherits:
SignaledError
  • Object
show all
Defined in:
lib/process_executer/errors.rb

Overview

Raised when the wait for the command is cut short by timeout_after elapsing

Examples:

begin
  ProcessExecuter.spawn_with_timeout('sleep 1', timeout_after: 0.1)
rescue ProcessExecuter::TimeoutError => e
  puts "Command timed out: #{e.result.command}"
end