APIError

public enum APIError : Error

The possible errors published by a network activity.

  • This class of status code is intended for situations in which the client seems to have erred.

    Declaration

    Swift

    case clientError
  • This class of status code indicates the server failed to fulfill an apparently valid request.

    Declaration

    Swift

    case serverError
  • This class of status code indicates the failure while parsing the data.

    Declaration

    Swift

    case parsingFailed
  • This class of status code indicates the failure while downloading a file.

    Declaration

    Swift

    case downloadFailed
  • This class of status code indicates the download url was Invalid.

    Declaration

    Swift

    case invalidURL
  • The class of the status code cannot be resolved.

    Declaration

    Swift

    case undefined
  • The class of status code indicates no internet connection.

    Declaration

    Swift

    case noInternet
  • Localized description of API Error cases.

    Declaration

    Swift

    public var localizedDescription: String { get }