Exception: MGit::UnknownCommandError

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

Instance Method Summary collapse

Methods inherited from UsageError

#to_s

Constructor Details

#initialize(cmd) ⇒ UnknownCommandError

Returns a new instance of UnknownCommandError.



45
46
47
# File 'lib/mgit/exceptions.rb', line 45

def initialize(cmd)
  super("Unknown command '#{cmd}'.", "Command may be one of: #{Command.list}")
end