GiniError
public enum GiniError : Error, GiniErrorProtocol, Equatable
Enum representing different types of errors that can occur while interacting with the Gini API.
- badRequest: Error indicating that the request was invalid.
- notAcceptable: Error indicating that the request was not acceptable.
- notFound: Error indicating that the requested resource was not found.
- noResponse: Error indicating that no response was received.
- parseError: Error indicating that there was an error parsing the response.
- requestCancelled: Error indicating that the request was cancelled.
- tooManyRequests: Error indicating that too many requests have been made.
- unauthorized: Error indicating that the request was unauthorized.
- unknown: An unknown error occurred.
-
Undocumented
Declaration
Swift
case badRequest(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case notAcceptable(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case notFound(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case noResponse -
Undocumented
Declaration
Swift
case parseError(message: String, response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case requestCancelled -
Undocumented
Declaration
Swift
case tooManyRequests(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case unauthorized(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
case unknown(response: HTTPURLResponse? = nil, data: Data? = nil) -
Undocumented
Declaration
Swift
public var message: String { get } -
Undocumented
Declaration
Swift
public var response: HTTPURLResponse? { get } -
Undocumented
Declaration
Swift
public var data: Data? { get }
View on GitHub
GiniError Enumeration Reference