Try

scala.util.Try
See theTry companion class
object Try

Attributes

Companion
class
Source
Try.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
Try.type

Members list

Value members

Concrete methods

def apply[T](r: => T): Try[T]

Constructs a Try using the by-name parameter.

Constructs a Try using the by-name parameter. This method will ensure any non-fatal exception is caught and a Failure object is returned.

Attributes

Source
Try.scala