Utils

object Utils
class Object
trait Matchable
class Any

Value members

Concrete methods

def opt[T, U <: Throwable](attempt: => T)(implicit manifest: Manifest[U]): Option[T]

Attempts to compute attempt, suppressing the specified exception.

Attempts to compute attempt, suppressing the specified exception.

Returns

attempt wrapped in an scala.Option, or scala.None if an exception of type U is thrown

def optionally[T, U <: Throwable](attempt: => T)(implicit manifest: Manifest[U]): Either[U, T]
def runnable(f: => Any): Runnable
def timed[T](f: => T): (T, Duration)
def using[T <: Closeable, U](resource: T)(op: T => U): U

Concrete fields

val suppresser: PartialFunction[Throwable, Unit]