Exception: Commandable::UnknownCommandError
- Inherits:
-
ScriptError
- Object
- ScriptError
- Commandable::UnknownCommandError
- 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
-
#friendly_name ⇒ Object
Returns a more print friendly error name.
-
#initialize(msg) ⇒ UnknownCommandError
constructor
Create a new instance of the MissingRequiredCommandError class.
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_name ⇒ Object
Returns a more print friendly error name
69 70 71 |
# File 'lib/commandable/exceptions.rb', line 69 def friendly_name "Unknown Command" end |