We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance PollerError with associated value Error, i.e. PollerError.noResponse(Error?).
Error
PollerError.noResponse(Error?)
In Poller.swift: line 129, the function getFeatures(context:completionHandler:) -> Void completes with noResponse error.
getFeatures(context:completionHandler:) -> Void
noResponse
guard let httpResponse = response as? HTTPURLResponse else { Printer.printMessage("No response") completionHandler?(.noResponse) return }
Our iOS project has to catch the exact error from the session to do some other requests, especially for the noResponse error.
Providing detailed error in associated values on PollerError. And pass them from getFeatures(context:completionHandler:) -> Void of Poller.swift.
public enum PollerError: Error { case decoding(Error) case network(Error?) case url case noResponse(Error?) case unhandledStatusCode(Int) }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the feature request
Enhance PollerError with associated value
Error
, i.e.PollerError.noResponse(Error?)
.Background
In Poller.swift: line 129, the function
getFeatures(context:completionHandler:) -> Void
completes withnoResponse
error.Our iOS project has to catch the exact error from the session to do some other requests, especially for the
noResponse
error.Solution suggestions
Providing detailed error in associated values on PollerError. And pass them from
getFeatures(context:completionHandler:) -> Void
of Poller.swift.The text was updated successfully, but these errors were encountered: