APIError
public class APIError : Decodable, Error, CustomDebugStringConvertible
Information regarding an error received from Contentful’s API.
-
Declaration
Swift
public var debugDescription: String { get } -
System fields for the error.
See moreDeclaration
Swift
public struct Sys : Decodable -
System fields.
Declaration
Swift
public let sys: Sys -
Human readable error message.
Declaration
Swift
public let message: String! -
The identifier of the request, can be useful when making support requests.
Declaration
Swift
public let requestId: String! -
The HTTP status code.
Declaration
Swift
public var statusCode: Int! -
More details about the error.
Declaration
Swift
public let details: Details? -
A lightweight struct describing other details about the error.
See moreDeclaration
Swift
public struct Details : Decodable -
A psuedo identifier for the error returned by the API(s). “BadRequest”, “InvalidQuery” and “InvalidEntry” are all examples.
Declaration
Swift
public var id: String { get } -
Resource type (“Error”).
Declaration
Swift
public var type: String { get } -
Declaration
Swift
public required init(from decoder: Decoder) throws
View on GitHub
APIError Class Reference