class SwiftypeAppSearch::UnexpectedHTTPException
Public Class Methods
new(response, response_json)
click to toggle source
Calls superclass method
SwiftypeAppSearch::ClientException::new
# File lib/swiftype-app-search/exceptions.rb, line 24 def initialize(response, response_json) errors = (response_json['errors'] || [response.message]).map { |e| "(#{response.code}) #{e}" } super({ 'errors' => errors }) end