Error
public enum Error: Swift.Error
Any possible error occurring during the execution of CNKit.
-
The query was invalid and not sent.
Declaration
Swift
case invalidQuery(reason: String)
-
The response data could not be read.
Declaration
Swift
case response
-
The server returned a status code != 2xx or an error message.
Declaration
Swift
case server(status: Int, error: String?)
-
The received data could not be decoded as JSON.
Declaration
Swift
case decode(error: Swift.Error)
-
The received data had to be re-encoded before parsing, which failed.
Declaration
Swift
case reEncoding
-
The URL to this specific resource could not be read.
Declaration
Swift
case resourceURL(String)
-
Declaration
Swift
public var errorDescription: String?