Extractor of non-fatal Throwables. Will not match fatal errors
like VirtualMachineError (OutOfMemoryError)
ThreadDeath, LinkageError and InterruptedException.
StackOverflowError is matched, i.e. considered non-fatal.
Usage to catch all harmless throwables:
try {
// dangerous stuff
} catch {
case NonFatal(e) => log.error(e, "Something not that bad")
}
Extractor of non-fatal Throwables. Will not match fatal errors like VirtualMachineError (OutOfMemoryError) ThreadDeath, LinkageError and InterruptedException. StackOverflowError is matched, i.e. considered non-fatal.
Usage to catch all harmless throwables: