APIError
public class APIError : Decodable, Error, CustomDebugStringConvertible
Information regarding an error received from Contentstack’s API.
-
Declaration
Swift
public var debugDescription: String { get }
-
Human redable error Message
Declaration
Swift
public let errorMessage: String
-
Error Code from API.
Declaration
Swift
public let errorCode: Int
-
More detailed error Information.
Declaration
Swift
public let errorInfo: ErrorInfo!
-
The HTTP status code.
Declaration
Swift
public var statusCode: Int!
-
Decodable Initializer for APIError.
Declaration
Swift
public required init(from decoder: Decoder) throws
-
A description about detailed error information
See moreDeclaration
Swift
public class ErrorInfo : Decodable, CustomDebugStringConvertible