findInstance

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

Finds the first cause instance of the given type.