org.scalautils.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalatest_2.11.0-M5 Show documentation
Show all versions of scalatest_2.11.0-M5 Show documentation
ScalaTest is a free, open-source testing toolkit for Scala and Java
programmers.
The newest version!
package org
import scala.util.control.NonFatal
package object scalautils {
type ErrorMessage = String
def attempt[R](f: => R): R Or Throwable =
try Good(f)
catch {
case e: Throwable if NonFatal(e) => Bad(e)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy