SDKError
public enum SDKError: Error
Possible errors being thrown by the SDK
-
Thrown when no valid client is available during sync
Declaration
Swift
case invalidClient()
-
Thrown when receiving an invalid HTTP response
@param URLResponse? Optional URL response that has triggered the error
Declaration
Swift
case invalidHTTPResponse(response: URLResponse?)
-
Thrown when constructing an invalid URL
@param String The invalid URL string
Declaration
Swift
case invalidURL(string: String)
-
Thrown if the sync endpoint is called while being in preview mode
Declaration
Swift
case previewAPIDoesNotSupportSync()
-
Thrown when receiving unparseable JSON responses
@param Data The data being parsed @param String The error which occured during parsing
Declaration
Swift
case unparseableJSON(data: Data, errorMessage: String)
-
Thrown when no entry is found matching a specific Entry id
Declaration
Swift
case noEntryFoundFor(id: String)
View on GitHub
SDKError Enum Reference