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.



28
29
30
31
# File 'lib/mgit/exceptions.rb', line 28

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

Instance Method Details

#to_sObject



33
34
35
# File 'lib/mgit/exceptions.rb', line 33

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