causes

fun causes(failure: Throwable): List<Throwable>

Visits each cause once, from the outer failure inward, using identity to stop on cycles.

Return

its finite cause chain, including the failure itself

Parameters

failure

the outer failure