New issue
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
need safe response converter #389
Comments
Hi, are you looking from something like de.jensklingenberg.ktorfit.Response ?
|
In addition, when using response converter, I currently can't see any way to handle non-http exceptions from the docs. For example if there's no connectivity, UnresolvedHostException is thrown there's no way to handle such exceptions using response converters. |
What @Ric-AB said exactly what I wanted to say, UnresolvedHostException unable to handle non-Http exceptions,it just throw the exception and no way to handle it. |
Hi, i understand the need for that feature and will make it work to handle these exception from inside a converter |
Retrofit's Response Converter supports converting the abnormal result into a successful result when an exception occurs during the network request process, but Ktorfit currently can only convert the case where no exception occurs, which makes me have to use try-catch to wrap For the request method, can I add a Converter so that I can continue to convert the result when the request reports an error instead of directly causing the framework to throw an exception
The text was updated successfully, but these errors were encountered: