ktor-client-tests / io.ktor.client.tests.utils / assertFailsWith

assertFailsWith

inline expect fun <reified T : Throwable> assertFailsWith(block: () -> Unit): Unit

Asserts that a block fails with a specific exception of type T being thrown.