class Graphlient::Errors::ExecutionError

def create_details(details)

def create_details(details)
  details.map { |detail| detail['message'] }
end

def errors

def errors
  response.data.errors
end

def initialize(response)

def initialize(response)
  super('the server responded with a GraphQL execution error')
  @response = response
end

def to_s

def to_s
  errors.details.map do |key, details|
    details = create_details(details).join("\n")
    [key, details].compact.join(': ')
  end.join("\n")
end