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