Exception: ProcessExecuter::TimeoutError

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

Overview

Raised when the command takes longer than the configured timeout_after

Examples:

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

Instance Attribute Summary

Attributes inherited from CommandError

#result

Method Summary

Methods inherited from CommandError

#error_message, #initialize

Constructor Details

This class inherits a constructor from ProcessExecuter::CommandError