All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tsec.common.NonFatal.scala Maven / Gradle / Ivy

The newest version!
package tsec.common

private[tsec] object NonFatal {

  def apply(t: Throwable): Boolean = t match {
    case _: VirtualMachineError => false
    case _                      => true
  }

  def unapply(t: Throwable): Option[Throwable] =
    if (apply(t)) Some(t) else None
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy