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)