Try

object Try
Companion:
class
Source:
Try.scala
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Try.type

Type members

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Inherited from:
Mirror
Source:
Mirror.scala

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.

Source:
Try.scala