class BingAdsRubySdk::Errors::PartialErrorBase

Base class for handling partial errors

Private Instance Methods

fault_hash() click to toggle source

The parent hash for this type of error is the root of the response

# File lib/bing_ads_ruby_sdk/errors/errors.rb, line 125
def fault_hash
  raw_response[fault_key] || {}
end
first_error_message(error_list) click to toggle source

Gets the first error message in the list. This is overridden because partial errors are structured differently to application faults @return [Hash] containing the details of the error

# File lib/bing_ads_ruby_sdk/errors/errors.rb, line 133
def first_error_message(error_list)
  error = error_list.first
  format_message(error[:error_code], error[:message])
end