Base class for all API exceptions.
# File lib/simplify/apiexception.rb, line 49 def initialize(message, status, errorData) super(message) @status = status @errorMessage = message @fieldErrors = [] if errorData != nil @errorData = errorData @reference = errorData.has_key?('reference') ? errorData['reference'] : nil if errorData.has_key?('error') error = errorData['error'] @errorCode = error['code'] if error.has_key?('message') message = error['message'] end end end super(message) end
Generated with the Darkfish Rdoc Generator 2.