assertk / assertk.assertions / rootCause

rootCause

(common, jvm) fun Assert<Throwable>.rootCause(): Assert<Throwable>

Returns an assert on the throwable's root cause.