HyperwalletError
public struct HyperwalletError : Decodable
Representation of the Hyperwallet error entity.
-
The error message
Declaration
Swift
public private(set) var message: String { get } -
The error code
Declaration
Swift
public private(set) var code: String { get } -
The field name
Declaration
Swift
public private(set) var fieldName: String? { get } -
The list of related resources
Declaration
Swift
public private(set) var relatedResources: [String]? { get } -
Creates an instance of HyperwalletError
Declaration
Swift
public init(message: String, code: String, fieldName: String? = nil, relatedResources: [String]? = nil)Parameters
messageThe error message
codeThe error code
fieldNameThe field name. By the default is nil
relatedResourcesThe list of related resources. By the default is nil
View on GitHub