APIError
public enum APIError : LocalizedError, NSErrorSerializable
API error types.
-
The Apple Pay token is invalid.
Declaration
Swift
case invalidApplePayToken(PKPaymentToken) -
The system error.
Declaration
Swift
case systemError(Error) -
No body data or no response error.
Declaration
Swift
case invalidResponse(HTTPURLResponse?) -
The error response object that is coming back from the server side.
Declaration
Swift
case serviceError(PAYErrorResponseType) -
Invalid JSON object.
Declaration
Swift
case invalidJSON(Data, Error?) -
Too many requests in a short period of time.
Declaration
Swift
case rateLimitExceeded
-
Declaration
Swift
public var errorDescription: String? { get } -
Undocumented
Declaration
Swift
public var errorCode: Int { get } -
Undocumented
Declaration
Swift
public var userInfo: [String : Any] { get }
-
Returns error response object if the type is
.serviceError.Declaration
Swift
public var payError: PAYErrorResponseType? { get }
View on GitHub