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
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_s ⇒ Object
10 11 12 |
# File 'lib/mgit/exceptions.rb', line 10 def to_s @error + "\n" + @usage end |