Hello everyone. I have a question that could be po...
# ktor
a
Hello everyone. I have a question that could be potentially very silly. What is the best way to handle connection errors in a multiplatform project (Android and iOS), when I make a call with Ktor?
e
Hi @alexfacciorusso, you could catch the exception
The future
1.2.0
introduces
ResponseValidator
feature with custom error handlers.
a
Hi Leonid! Thank you for you response! Actually I've "stolen" that class from the repo and using it right now; so how would you catch the ios and Android offline exceptions since they are actually different ones?
g
You can define expect declaration and implement it on Android and iOS and handle network state exception