SDKError

public enum SDKError: Error

Possible errors being thrown by the SDK

  • 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 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 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.Data object is unable to be transformed to a UIImage or an NSImage object.

    Declaration

    Swift

    case unableToDecodeImageData
  • Thrown when the SDK has issues mapping responses with the necessary locale information.

    Declaration

    Swift

    case localeHandlingError(message: String)