WebServiceError
public class WebServiceError
Errors that can occur in the WebService domain
-
Nil Network Interface on Resource.
Declaration
Swift
public static func noNetworkInterface() -> NSError
-
Empty Base URL.
Declaration
Swift
public static func emptyBaseURL() -> NSError
-
Invalid Base URL.
Declaration
Swift
public static func invalidBaseURL(url: String) -> NSError
-
Invalid URL.
Declaration
Swift
public static func invalidURL(url: String) -> NSError
-
Invalid URL after adding query params.
Declaration
Swift
public static func invalidQueryStringWithURL(url: String) -> NSError
-
Fields encoding failure.
Declaration
Swift
public static func fieldsEncodingFailure(dictionary: [String : Any]) -> NSError
-
JSON Encoding failure.
Declaration
Swift
public static func jsonEncodingFailure(dictionary: [AnyHashable : Any], error: Error?) -> NSError
-
JSON Array Encoding failure.
Declaration
Swift
public static func jsonEncodingFailure(array: [Any], error: Error?) -> NSError
-
Codable Encoding failure.
Declaration
Swift
public static func codableEncodingFailure(error: Error?) -> NSError