Errors
public class Errors : APIModel
Error objects provide additional information about problems encountered while performing an operation.
Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change.
* code 1000
: generic error
* code 1001
: payment processing temporarily unavailable
* code 1002
: requested amount exceeds the authorized amount of the provided token
* code 1003
: implicit payment methods cannot be modified
* code 1004
: payment method rejected by provider
-
an application-specific error code, expressed as a string value.
Declaration
Swift
public var code: String?
-
a human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized.
Declaration
Swift
public var detail: String?
-
A unique identifier for this particular occurrence of the problem.
Declaration
Swift
public var id: String?
-
Undocumented
Declaration
Swift
public var links: Links?
-
a meta object containing non-standard meta-information about the error.
Declaration
Swift
public var meta: [String : Any]?
-
An object containing references to the source of the error.
Declaration
Swift
public var source: Source?
-
the HTTP status code applicable to this problem, expressed as a string value.
Declaration
Swift
public var status: String?
-
A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
Declaration
Swift
public var title: String?
-
Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
Swift
public class Links : APIModel
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Undocumented
Declaration
Swift
public func isEqual(to object: Any?) -> Bool
-
Declaration
Swift
public static func == (lhs: Errors, rhs: Errors) -> Bool