Exception: Git::SignaledError
- Inherits:
-
GitExecuteError
- Object
- StandardError
- GitExecuteError
- Git::SignaledError
- Defined in:
- lib/git/signaled_error.rb
Overview
This error is raised when a git command exits because of an uncaught signal
The git command executed, status, stdout, and stderr are available from this object. The #message includes the git command, the status of the process, and the stderr of the process.
Instance Attribute Summary collapse
-
#result ⇒ Git::CommandLineResult
readonly
The result of the git command including the git command, status, and output.
Instance Method Summary collapse
-
#initialize(result) ⇒ SignaledError
constructor
Create a SignaledError object.
Constructor Details
#initialize(result) ⇒ SignaledError
Create a SignaledError object
26 27 28 29 |
# File 'lib/git/signaled_error.rb', line 26 def initialize(result) super("#{result.git_cmd}\nstatus: #{result.status}\nstderr: #{result.stderr.inspect}") @result = result end |
Instance Attribute Details
#result ⇒ Git::CommandLineResult (readonly)
The result of the git command including the git command, status, and output
48 49 50 |
# File 'lib/git/signaled_error.rb', line 48 def result @result end |