AccountError
public enum AccountError : Error, Equatable
Errors which can happen when retrieving an Account
-
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 missingResultParamenter(json: String) -
When the received JSON does have an unexpected value
Declaration
Swift
case invalidResultParamenter(json: String) -
An error with the token occured
Declaration
Swift
case tokenError(_: TokenError)
View on GitHub
Install in Dash