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
message
The error message
code
The error code
fieldName
The field name. By the default is nil
relatedResources
The list of related resources. By the default is nil