NetworkError

public enum NetworkError : Error, ErrorEnum
extension NetworkError: Equatable

An error reported by the NetworkClient.

  • A request completed with a non 2xx status code

    Declaration

    Swift

    case non200Status(Int)
  • A request was cancelled before completion

    Declaration

    Swift

    case cancelled
  • A URLError was returned by the URLSession.dataTask completion

    Declaration

    Swift

    case urlError(URLError)
  • An unknown error occurred.

    Check the inner error to have details about what might have happened.

    Declaration

    Swift

    case unknown(Error?)
  • Declaration

    Swift

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