Exception: Officepod::Exception::UnsupportedCommand
- Defined in:
- lib/officepod/exception.rb
Overview
Exception raised when using undefined command
Instance Method Summary collapse
-
#initialize(command) ⇒ UnsupportedCommand
constructor
A new instance of UnsupportedCommand.
- #to_s ⇒ Object
Constructor Details
#initialize(command) ⇒ UnsupportedCommand
Returns a new instance of UnsupportedCommand.
7 8 9 10 |
# File 'lib/officepod/exception.rb', line 7 def initialize(command) msg = "#{command} command is unsupported!" super(msg) end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/officepod/exception.rb', line 12 def to_s "Unsupported Command: #{command}" end |