Exception: MGit::UsageError

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

Instance Method Summary collapse

Constructor Details

#initialize(error, usage) ⇒ UsageError

Returns a new instance of UsageError.



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

def initialize(error, usage)
  @error = error
  @usage = usage
end

Instance Method Details

#to_sObject



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

def to_s
  @error + "\n" + @usage
end