arrow-core-data / arrow.core / kotlin.Throwable / nonFatalOrThrow

nonFatalOrThrow

fun Throwable.nonFatalOrThrow(): Throwable

Returns the Throwable if NonFatal and throws it otherwise.

Exceptions

Throwable - the Throwable this if Fatal

Return the Throwable this if NonFatal

Do you like Arrow?

Arrow Org
<