NetableError
public enum NetableError : Error
extension NetableError: LocalizedError
extension NetableError: Equatable
All errors returned by Netable are NetableErrors.
-
Something went wrong while encoding request parameters.
Declaration
Swift
case codingError(String)
-
Something went wrong while decoding the response.
Declaration
Swift
case decodingError(Error, Data?)
-
The request was successful, but returned a non-200 status code.
Declaration
Swift
case httpError(Int, Data?)
-
The URL provided isn’t properly formatted.
Declaration
Swift
case malformedURL
-
Request failed to complete, usually due to a connectivity problem.
Declaration
Swift
case requestFailed(Error)
-
The fully qualified URL’s server does not match the base URL. Something’s gone wrong while validating the URL.
Declaration
Swift
case wrongServer
-
The server response was expected to contain data but is instead empty.
Declaration
Swift
case noData
-
Something went wrong while trying to parse response data. Throw this error if something goes wrong while calling Request.finalize().
Declaration
Swift
case resourceExtractionError(String)
-
We’re not sure what went wrong, but something did.
Declaration
Swift
case unknownError(Error)
-
Undocumented
Declaration
Swift
public var errorCode: Int? { get }
-
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public static func == (lhs: NetableError, rhs: NetableError) -> Bool