Exception: Officepod::Exception::UnsupportedCommand

Inherits:
Error
  • Object
show all
Defined in:
lib/officepod/exception.rb

Overview

Exception raised when using undefined command

Instance Method Summary collapse

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_sObject



12
13
14
# File 'lib/officepod/exception.rb', line 12

def to_s
 "Unsupported Command: #{command}"
end