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)
-
Thrown when the construction of a URL pointing to an underlying media file for an Asset is invalid.
Declaration
Swift
case invalidImageParameters(String)
-
Thrown when a
Foundation.Dataobject is unable to be transformed to aUIImageor anNSImageobject.Declaration
Swift
case unableToDecodeImageData
-
Thrown when the SDK has issues mapping responses with the necessary locale information.
Declaration
Swift
case localeHandlingError(message: String)
View on GitHub
SDKError Enum Reference