PositionError
public enum PositionError : Error
Errors which can happen when retrieving a Position
-
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 assets occured
Declaration
Swift
case assetError(_: AssetError)
-
An error with the token occured
Declaration
Swift
case tokenError(_: TokenError)