expectError

inline fun <reified T : Throwable> expectError(noinline check: T.() -> Unit = {}): T

A handler threw a T, which check checks.


fun <T : Throwable> expectError(type: KClass<T>, check: T.() -> Unit = {}): T

A handler threw a type, which check checks.