Exception: RubyGit::TimeoutError

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

Overview

This error is raised when a git command takes longer than the configured timeout

The git command executed, status, stdout, and stderr, and the timeout duration are available from this object.

result.status.timeout? will be true

API:

  • public

Instance Attribute Summary

Attributes inherited from CommandLineError

#result

Instance Method Summary collapse

Methods inherited from CommandLineError

#initialize

Constructor Details

This class inherits a constructor from RubyGit::CommandLineError

Instance Method Details

#error_messageString

The human readable representation of this error

Examples:

error.error_message #=>
  '["sleep", "10"], status: pid 88811 SIGKILL (signal 9), stderr: "err output", timed out after 1s'

Returns:

API:

  • public



170
171
172
# File 'lib/ruby_git/errors.rb', line 170

def error_message = "\#{super}, timed out after \#{result.options.timeout_after}s\n".chomp