Exception: Commandable::ExclusiveMethodClashError

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

Overview

This error is raised if a user gives two or more commands from the same exclusive group

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ ExclusiveMethodClashError

Create a new instance of the MissingRequiredCommandError class



61
62
63
# File 'lib/commandable/exceptions.rb', line 61

def initialize(msg)
  super("You may only run one of these commands at a time: \"#{msg}\"")
end

Instance Method Details

#friendly_nameObject

Returns a more print friendly error name



57
58
59
# File 'lib/commandable/exceptions.rb', line 57

def friendly_name
  "Exclusive "
end