Exception: Commandable::MissingRequiredCommandError
- Inherits:
-
ScriptError
- Object
- ScriptError
- Commandable::MissingRequiredCommandError
- Defined in:
- lib/commandable/exceptions.rb
Overview
An error raised if a user does not provide a required command
Instance Method Summary collapse
-
#friendly_name ⇒ Object
Returns a more print friendly error name.
-
#initialize(msg) ⇒ MissingRequiredCommandError
constructor
Create a new instance of the MissingRequiredCommandError class.
Constructor Details
#initialize(msg) ⇒ MissingRequiredCommandError
Create a new instance of the MissingRequiredCommandError class
32 33 34 |
# File 'lib/commandable/exceptions.rb', line 32 def initialize(msg) super("The required command \"#{msg}\" is missing.") end |
Instance Method Details
#friendly_name ⇒ Object
Returns a more print friendly error name
28 29 30 |
# File 'lib/commandable/exceptions.rb', line 28 def friendly_name "Missing Required Command" end |