SwiftBombRequestError
public enum SwiftBombRequestError: Error
An enum returned by network requests which defines the various errors which can occur during communication with the Giant Bomb API.
-
An issue with constructing the required framework components to make the request. Typically occurs when the framework hasn’t been initialized with a
SwiftBombConfig
instance.Declaration
Swift
case frameworkConfigError
-
An error making the request such as no network signal. Contains a reference to the actual NSError object.
Declaration
Swift
case networkError(NSError?)
-
An error parsing the response from the server. Contains a reference to the actual NSError object.
Declaration
Swift
case responseSerializationError(NSError?)
-
An error specifically returned by the Giant Bomb API. Contains the appropriate enum as defined in
ResourceResponseError
Declaration
Swift
case requestError(ResourceResponseError)