Exception: Wiziq::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wiziq.rb

Direct Known Subclasses

SchedulingPastError, SessionLimitError

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ APIError

Returns a new instance of APIError.



216
217
218
219
220
221
222
# File 'lib/wiziq.rb', line 216

def initialize(error)
  unless error.nil? or error[:fault].nil? 
    super("#{error[:fault][:faultcode]}: #{error[:fault][:faultstring]}")
  else
    super(error)
  end
end