Exception: MGit::GitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mgit/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ GitError

Returns a new instance of GitError.



5
6
7
# File 'lib/mgit/exceptions.rb', line 5

def initialize(error)
  @error = error
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/mgit/exceptions.rb', line 9

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