https://kotlinlang.org logo
#ktor
Title
k

KotlinLeaner

07/29/2023, 3:07 PM
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

Aleksei Tirman [JB]

07/29/2023, 3:35 PM
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

KotlinLeaner

07/29/2023, 3:36 PM
Got it!! Thanks for advice..