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?
03/29/2019, 4:45 PM
Hi @alexfacciorusso, you could catch the exception
feature with custom error handlers.
03/29/2019, 5:00 PM
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?
03/30/2019, 9:44 AM
You can define expect declaration and implement it on Android and iOS and handle network state exception