Exception: MGit::UsageError

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

Instance Method Summary collapse

Constructor Details

#initialize(error, usage) ⇒ UsageError



15
16
17
18
# File 'lib/mgit/exceptions.rb', line 15

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

Instance Method Details

#to_sObject



20
21
22
# File 'lib/mgit/exceptions.rb', line 20

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