DownloadError
public enum DownloadError : Error
extension DownloadError: LocalizedError
Errors which can happen when getting a Token
-
When the received data is not valid JSON
Declaration
Swift
case invalidJson(error: String)
-
When the paramters could not be converted to JSON
Declaration
Swift
case invalidParameters(parameters: [String : String])
-
When an HTTP error occurs
Declaration
Swift
case httpError(error: String)
-
When no data is received from the HTTP request
Declaration
Swift
case noDataReceived
-
When trying to download transactions from a non existing statement
Declaration
Swift
case invalidStatementNumber(_: Int)
-
When parsing a transaction failed because the activity category is not recognized
Declaration
Swift
case unkownActivityCategory(_: String)
-
When generating a two factor authentication code fails
Declaration
Swift
case twoFactorAuthenticationCodeGenerationFailed
-
When the delegate does not return a two factor preference (probably because the delegate is not set)
Declaration
Swift
case noTwoFactorPreference
-
Declaration
Swift
public var errorDescription: String? { get }