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 if the subsequent sync operations are executed in preview mode.
Declaration
Swift
case previewAPIDoesNotSupportSync
-
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 no resource is found matching a specified id
Declaration
Swift
case noResourceFoundFor(id: String)
-
Thrown when a
Foundation.Data
object is unable to be transformed to aUIImage
or anNSImage
object.Declaration
Swift
case unableToDecodeImageData
-
Thrown when the SDK has issues mapping responses with the necessary locale information.
Declaration
Swift
case localeHandlingError(message: String)
Parameters
message
The message from the erorr which occured during parsing.
-
Declaration
Swift
public var debugDescription: String { get }