Exception: Commandable::UnknownCommandError

Inherits:
ScriptError
  • Object
show all
Defined in:
lib/commandable/exceptions.rb

Overview

A error raised if a user tries to run a command that is not in the commands array

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ UnknownCommandError

Create a new instance of the MissingRequiredCommandError class



73
74
75
# File 'lib/commandable/exceptions.rb', line 73

def initialize(msg)
  super("There is no \"#{msg}\" command")
end

Instance Method Details

#friendly_nameObject

Returns a more print friendly error name



69
70
71
# File 'lib/commandable/exceptions.rb', line 69

def friendly_name
  "Unknown Command"
end