NetworkJSONServiceError
public enum NetworkJSONServiceError : Error
Error in the network layer.
-
Specifies an error occurred while sending the network request.
Declaration
Swift
case networkError(error: Error)
Parameters
error
The error return from the
URLRequest
. -
Specifies that no data was returned by the
URLRequest
.Declaration
Swift
case noData
-
Specifies that the network status code was invalid (not between 200 and 400).
Declaration
Swift
case networkResponseError(response: HTTPURLResponse)
Parameters
response
HTTPURLResponse
returned from the URLResponse. -
Specifies that an unknown error has occurred.
Declaration
Swift
case unknownErrorOccurred(desc: String)