Is it save to use `<http://io.ktor.utils.io|io.kto...
# ktor
s
Is it save to use
<http://io.ktor.utils.io|io.ktor.utils.io>.errors.IOException
for all network IO exceptions across platforms?
l
Can you try writing a Unit Test that throws that Exception?
s
I can - but that wouldn’t really answer the question
l
Well it would if you wrote the tests to test it would it not? When you say "save (safe)", what do you mean?
s
I’m trying to understand if each platform, when it encounters a network error, will throw an instance of IOException
like the JVM http libs do
l
Ahh, OK. Then you should still be able to write tests for that.
The chances are that they probably throw their own Exceptions, but I couldn't confirm that at this moment.