RequestError

public enum RequestError : Swift.Error, CustomNSError, RequestErrorProtocol

请求错误

  • Undocumented

    Declaration

    Swift

    case unknown
  • Undocumented

    Declaration

    Swift

    case cacheExpired
  • Undocumented

    Declaration

    Swift

    case cacheVersionMismatch
  • Undocumented

    Declaration

    Swift

    case cacheSensitiveDataMismatch
  • Undocumented

    Declaration

    Swift

    case cacheAppVersionMismatch
  • Undocumented

    Declaration

    Swift

    case cacheInvalidCacheTime
  • Undocumented

    Declaration

    Swift

    case cacheInvalidMetadata
  • Undocumented

    Declaration

    Swift

    case cacheInvalidCacheData
  • Undocumented

    Declaration

    Swift

    case validationInvalidStatusCode(_: Int)
  • Undocumented

    Declaration

    Swift

    case validationInvalidJSONFormat
  • Declaration

    Swift

    public static var errorDomain: String { get }
  • Declaration

    Swift

    public var errorCode: Int { get }
  • Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }
  • 判断是否是网络请求错误,支持嵌套请求错误

    Declaration

    Swift

    public static func isRequestError(_ error: Error?) -> Bool
  • 判断是否是网络连接错误,支持嵌套请求错误

    Declaration

    Swift

    public static func isConnectionError(_ error: Error?) -> Bool
  • 判断是否是网络取消错误,支持嵌套请求错误

    Declaration

    Swift

    public static func isCancelledError(_ error: Error?) -> Bool