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
responseOptional URL response that has triggered the error.
-
Thrown when attempting to construct an invalid URL.
Declaration
Swift
case invalidURL(string: String)Parameters
stringThe 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
dataThe data being parsed.
errorMessageThe 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.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)Parameters
messageThe message from the erorr which occured during parsing.
-
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
SDKError Enumeration Reference