Exception: MGit::CommandUsageError
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- MGit::CommandUsageError
- Defined in:
- lib/mgit/exceptions.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(error, cmd) ⇒ CommandUsageError
constructor
A new instance of CommandUsageError.
Methods inherited from UsageError
Constructor Details
#initialize(error, cmd) ⇒ CommandUsageError
Returns a new instance of CommandUsageError.
51 52 53 |
# File 'lib/mgit/exceptions.rb', line 51 def initialize(error, cmd) super(error, "Usage: mgit #{cmd.usage}") end |