assertk / assertk / thrownError

thrownError

(common, jvm) fun <T> Assert<Result<T>>.thrownError(f: Assert<Throwable>.() -> Unit): Unit
Deprecated: Use isFailure().all(f) instead

Runs the given lambda if the block throws an error, otherwise fails.