SDKError
public enum SDKError : Error, CustomDebugStringConvertible
Possible errors being thrown by the SDK
-
Thrown when receiving an invalid HTTP response.
Declaration
Swift
case invalidHTTPResponse(response: URLResponse?)
Parameters
response
Optional URL response that has triggered the error.
-
Thrown when attempting to construct an invalid URL.
Declaration
Swift
case invalidURL(string: String)
Parameters
string
The invalid URL string.
-
Thrown when attempting to construct an invalid URL.
Declaration
Swift
case invalidUID(string: String)
Parameters
string
The invalid URL string.
-
Thrown when receiving unparseable JSON responses.
Declaration
Swift
case unparseableJSON(data: Data?, errorMessage: String)
Parameters
data
The data being parsed.
errorMessage
The message from the error which occured during parsing.
-
Thrown when Stack is not found .
Declaration
Swift
case stackError
-
Thrown when not reciving or no cached response.
Declaration
Swift
case cacheError
-
Thrown when reciving invalide Syncronization HTTP response .
Declaration
Swift
case syncError
-
Declaration
Swift
public var debugDescription: String { get }