arrow-core-data / arrow.core / NonFatal


fun NonFatal(t: Throwable): Boolean

Extractor of non-fatal Throwables. Will not match fatal errors like VirtualMachineError (for example, OutOfMemoryError and StackOverflowError, subclasses of VirtualMachineError), ThreadDeath, LinkageError, InterruptedException.

Checks whether the passed t Throwable is NonFatal.


t - the Throwable to check

Return true if the provided Throwable is to be considered non-fatal, or false if it is to be considered fatal

Do you like Arrow?

Arrow Org