APIRequestError

public enum APIRequestError : Error

Enumeration of the Errors that can occur during an APIRequest.

  • Error occuring when a request gets a response with an invalid response code; provides a decription of the error code.

    Declaration

    Swift

    case invalidHTTPReponse(code: Int, description: String)
  • Error occuring when a request encounters an inconsistancy it does not know how to handle; provides a decription of the error.

    Declaration

    Swift

    case internalError(description: String)
  • Error occuring when a request is cancelled.

    Declaration

    Swift

    case cancelled