APIError

public enum APIError : LocalizedError
extension APIError: Equatable

APIError

  • 网络不可用 目前是在发送请求前进行检查

    Declaration

    Swift

    case networkError
  • 发送错误

    Declaration

    Swift

    case requestError(Error)
  • 连接错误

    Declaration

    Swift

    case connectionError(Error)
  • 接收错误 解析等步骤

    Declaration

    Swift

    case responseError(Error)
  • 缓存错误

    Declaration

    Swift

    case cache(Error)
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Declaration

    Swift

    public static func == (lhs: APIError, rhs: APIError) -> Bool