NetworkError
public enum NetworkError : LocalizedError, Sendable
Common network error cases surfaced by PingNetwork operations.
-
The request could not be constructed or is malformed.
Declaration
Swift
case invalidRequest(String) -
The response could not be parsed or is malformed.
Declaration
Swift
case invalidResponse(String) -
The request exceeded the configured timeout interval.
Declaration
Swift
case timeout -
The network is unreachable or connection was lost.
Declaration
Swift
case networkUnavailable -
The request was explicitly cancelled.
Declaration
Swift
case cancelled -
Provides a localized description of the error.
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub