Exception: MGit::UsageError
- Inherits:
-
StandardError
- Object
- StandardError
- MGit::UsageError
- Defined in:
- lib/mgit/exceptions.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(error, usage) ⇒ UsageError
constructor
A new instance of UsageError.
- #to_s ⇒ Object
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_s ⇒ Object
20 21 22 |
# File 'lib/mgit/exceptions.rb', line 20 def to_s @error + "\n" + @usage end |