NetworkError
public enum NetworkError : Error
extension NetworkError: LocalizedError
Enum of API Errors
-
No data received from the server.
Declaration
Swift
case noData
-
The server response was invalid (unexpected format).
Declaration
Swift
case invalidResponse
-
The request was rejected: 400-499
Declaration
Swift
case badRequest(Int, String?)
-
Encoutered a server error.
Declaration
Swift
case serverError(Int, String?)
-
There was an error parsing the data.
Declaration
Swift
case parseError(String?)
-
Unknown error.
Declaration
Swift
case unknown(String?)
-
Declaration
Swift
public var errorDescription: String? { get }