Exception: Commandable::MissingRequiredCommandError

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

Overview

An error raised if a user does not provide a required command

Instance Method Summary collapse

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_nameObject

Returns a more print friendly error name



28
29
30
# File 'lib/commandable/exceptions.rb', line 28

def friendly_name
  "Missing Required Command"
end