Exception: RubyGit::ArgumentError

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

Overview

Raised when an invalid argument is passed to a method

Examples:

Raising RubyGit::ArgumentError due to invalid option value

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