STRUCT
GraphQLHTTPResponseError
public struct GraphQLHTTPResponseError: Error, LocalizedError
A transport-level, HTTP-specific error.
Properties
body
public let body: Data?
The body of the response.
response
public let response: HTTPURLResponse
Information about the response as provided by the server.
kind
public let kind: ErrorKind
graphQLErrors
public var graphQLErrors: [GraphQLError]?
Any graphQL errors that could be parsed from the response, or nil if none could be parsed.
bodyDescription
public var bodyDescription: String
errorDescription
public var errorDescription: String?
Methods
init(body:response:kind:)
public init(body: Data? = nil,
response: HTTPURLResponse,
kind: ErrorKind)