Exception: Wiziq::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Wiziq::APIError
- Defined in:
- lib/wiziq.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(error) ⇒ APIError
constructor
A new instance of APIError.
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 |