Packages

object Try extends java.io.Serializable

Source
Try.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Try
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

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

    Constructs a Try using the by-name parameter as a result value.

    Constructs a Try using the by-name parameter as a result value.

    The evaluation of r is attempted once.

    Any non-fatal exception is caught and results in a Failure that holds the exception.

    r

    the result value to compute

    returns

    the result of evaluating the value, as a Success or Failure