TransactionError
public enum TransactionError : Error
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(error: String)
-
When the received JSON does not have the right type
Declaration
Swift
case invalidJsonType(json: Any)
-
When the received JSON does not have all expected values
Declaration
Swift
case missingResultParamenter(json: [String : Any])
-
When the received JSON does have an unexpected value
Declaration
Swift
case invalidResultParamenter(json: [String : Any])
-
An error with the token occured
Declaration
Swift
case tokenError(_: TokenError)
-
Declaration
Swift
public var errorDescription: String? { get }