TransactionError
public enum TransactionError : Error, Equatable
extension TransactionError: LocalizedError
Errors which can happen when retrieving a Transaction
-
When no data is received from the HTTP request
Declaration
Swift
case noDataReceived -
When an HTTP error occurs
Declaration
Swift
case httpError(error: String) -
When the received data is not valid JSON
Declaration
Swift
case invalidJson(json: Data) -
When the received JSON does not have all expected values
Declaration
Swift
case missingResultParameter(json: [String : Any]) -
When the received JSON does have an unexpected value
Declaration
Swift
case invalidResultParameter(json: [String : Any]) -
An error with the token occured
Declaration
Swift
case tokenError(_: TokenError) -
Invalid Parameter
Declaration
Swift
case invalidParameter -
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool -
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub
Install in Dash