← Back to Kairo Docs|API Reference (Dokka)

firstCauseOf

inline fun <T> Throwable.firstCauseOf(): T?

Walks the exception cause chain and returns the first cause matching type T, or null if none match.