Exception: MGit::GitError

Inherits:
SystemCommandError show all
Defined in:
lib/mgit/exceptions.rb

Instance Attribute Summary

Attributes inherited from SystemCommandError

#cmd, #error

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ GitError

Returns a new instance of GitError.



18
19
20
# File 'lib/mgit/exceptions.rb', line 18

def initialize(error)
  @error = error
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/mgit/exceptions.rb', line 22

def to_s
  "Git error: #{@error}"
end