Exception: MGit::GitError
- Inherits:
-
SystemCommandError
- Object
- StandardError
- SystemCommandError
- MGit::GitError
- Defined in:
- lib/mgit/exceptions.rb
Instance Attribute Summary
Attributes inherited from SystemCommandError
Instance Method Summary collapse
-
#initialize(error) ⇒ GitError
constructor
A new instance of GitError.
- #to_s ⇒ Object
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_s ⇒ Object
22 23 24 |
# File 'lib/mgit/exceptions.rb', line 22 def to_s "Git error: #{@error}" end |