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.
28 29 30 31 |
# File 'lib/mgit/exceptions.rb', line 28 def initialize(error, usage) @error = error @usage = usage end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/mgit/exceptions.rb', line 33 def to_s @error + "\n" + @usage end |