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
2.0.0
Add custom validation to ktor
HttpResponseValidator { validateResponse { throw MyHttpException() } }
This exception is not propagated to coroutine suspension function.
try{ myCoroutine() catch(e: MyHttpException)
But if you throw any subtype of ResponseException, you will be able to catch it.
Any exception is propagated to coroutine
No response
The text was updated successfully, but these errors were encountered:
It just tried to reproduce it, the exception is propagated to the catch block and then to the exceptionhandler
Ktorfit/example/AndroidOnlyExample/app/src/main/java/de/jensklingenberg/androidonlyexample/MainActivity.kt
Line 79 in 237e213
Sorry, something went wrong.
I suspect, it is not catched in catch as iI would expect, but in handler as you've mentioned
catch
When branches are created from issues, their pull requests are automatically linked.
Ktorfit version
2.0.0
What happened and how can we reproduce this issue?
Add custom validation to ktor
This exception is not propagated to coroutine suspension function.
But if you throw any subtype of ResponseException, you will be able to catch it.
What did you expect to happen?
Any exception is propagated to coroutine
Is there anything else we need to know about?
No response
The text was updated successfully, but these errors were encountered: