Sha256: b3ba9d087bbb030fe66da8ddd1daa33cb82aa4b980e8bd2a2b93c6ce87a239d1
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true module GraphQL module Client Error = Class.new(StandardError) OpenTimeoutError = Class.new(Error) ReadTimeoutError = Class.new(Error) ResponseError = Class.new(Error) class ClientError < Error attr_reader :response def initialize(response) @response = response end def message "#{response.code} #{response.message}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql_client-0.4.1 | lib/graphql_client/error.rb |
graphql_client-0.3.3 | lib/graphql_client/error.rb |