kotest-assertions / io.kotest.assertions / Failures / failure

failure

fun failure(message: String): AssertionError

Creates an AssertionError with the given message and cause

fun failure(message: String, cause: Throwable?): AssertionError
fun failure(message: String, expectedRepr: String, actualRepr: String): Throwable