ApiError
public enum ApiError : Error
Errors that can be thrown by API operations
-
Details of encoding errors will be library specific
Declaration
Swift
case jsonEncoding(message: String, details: [String : Any])
-
Details of decoding errors will be library specific
Declaration
Swift
case jsonDecoding(message: String, details: [String : Any])
-
When the server returns an HTTP error
Declaration
Swift
case httpError(reason: HTTPErrorReason, response: HTTPURLResponse)
-
Catch all
Declaration
Swift
case error(error: Error)
-
Reasons that the API may return an error.
If an unknown status code is returned, the default is to return
See moreserverError
Declaration
Swift
public enum HTTPErrorReason : Int