Determines whether t
is a non-fatal Exception.
Determines whether t
is a non-fatal Exception.
true when t
is not a fatal Exception.
(Since version 2016-11-21) Use scala.util.control.NonFatal instead
This is identical in behavior to scala.util.control.NonFatal.apply
.
Determines whether t
is a non-fatal Exception.
Determines whether t
is a non-fatal Exception.
true when t
is not a fatal Exception.
(Since version 2016-11-21) Use scala.util.control.NonFatal instead
This is identical in behavior to scala.util.control.NonFatal.apply
.
A deconstructor to be used in pattern matches, allowing use in Exception handlers.
A deconstructor to be used in pattern matches, allowing use in Exception handlers.
try dangerousOperation() catch { case NonFatal(e) => log.error("Chillax") case e => log.error("Freak out") }
(Since version 2016-11-21) Use scala.util.control.NonFatal instead
This is identical in behavior to scala.util.control.NonFatal.unapply
.
A classifier of non-fatal Exceptions.
Developers should prefer using
scala.util.control.NonFatal
from the Scala standard library.(Since version 2016-11-21) Use scala.util.control.NonFatal instead
Scala added
NonFatal
to the standard library in Scala 2.10, while Twitter's util needed to provide this for users who were still on Scala 2.9 at the time.Scala's NonFatal for usage notes.