Exception: ProcessExecuter::ArgumentError

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

Overview

Raised when an invalid argument is passed to a method

Examples:

Raising ProcessExecuter::ArgumentError due to invalid option value

begin
  ProcessExecuter.run('echo Hello', timeout_after: 'not_a_number')
rescue ProcessExecuter::ArgumentError => e
  e.message #=> 'timeout_after must be nil or a non-negative real number but was "not_a_number"'
end