Hi guys, I was working in Ktor. I was reading this...
# ktor
k
Hi guys, I was working in Ktor. I was reading this section of Configure retry conditions. What is the import of
NetworkError
? I cannot find it. Thanks
Copy code
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("io.ktor:ktor-client-logging:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-core:$ktorVersion")
val ktorVersion = 2.3.2
a
I think this is just an example of an exception thrown when a network failure occurs (the
NetworkError
isn't defined). You can put any condition there.
k
Got it!! Thanks for advice..