TokenError
public enum TokenError : Error
Errors which can happen when getting a Token
-
When no token is found
Declaration
Swift
case noToken -
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 paramters could not be converted to JSON
Declaration
Swift
case invalidParameters(parameters: [String : String]) -
When the received JSON does not have all expected values
Declaration
Swift
case missingResultParamenter(json: [String : Any]) -
When an HTTP error occurs
Declaration
Swift
case httpError(error: String) -
When no data is received from the HTTP request
Declaration
Swift
case noDataReceived
View on GitHub
Install in Dash