Exception: Tools::InvalidCommandException
- Inherits:
-
StandardError
- Object
- StandardError
- Tools::InvalidCommandException
- Defined in:
- lib/tools/support/exceptions.rb
Instance Method Summary collapse
-
#initialize(command, available_commands) ⇒ InvalidCommandException
constructor
InvalidCommandException indicates to the user that the specified command is not supported.
- #message ⇒ Object
Constructor Details
#initialize(command, available_commands) ⇒ InvalidCommandException
InvalidCommandException indicates to the user that the specified command is not supported.
6 7 8 9 |
# File 'lib/tools/support/exceptions.rb', line 6 def initialize(command, available_commands) @command = command @available_commands = available_commands end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/tools/support/exceptions.rb', line 11 def %(Invalid command "#{@command}". Available commands: #{available_commands_string}.) end |