Packages

trait WithDefault[F] extends Simple[F]

Provides companion object methods for result types that have a sane default error type.

This default error type is materialised by fromThrowable.

Source
ResultCompanion.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithDefault
  2. Simple
  3. Simple
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Concrete Value Members

  1. def apply[S](s: => S): Either[F, S]

    Attempts to evaluate the specified expression.

    Attempts to evaluate the specified expression.

    Annotations
    @inline()
  2. def failure(f: F): Either[F, Nothing]

    Turns the specified value into a failure.

    Turns the specified value into a failure.

    Definition Classes
    Simple
    Annotations
    @inline()
  3. def fromTry[S](t: Try[S]): Either[F, S]

    Turns the specified Try into a result.

    Turns the specified Try into a result.

    Annotations
    @inline()
  4. def sequence[S, M[X] <: IterableOnce[X]](rs: M[Either[F, S]])(implicit bf: BuildFrom[M[Either[F, S]], S, M[S]]): Either[F, M[S]]

    Turns a collection of results into a result of a collection.

    Turns a collection of results into a result of a collection.

    Definition Classes
    Simple
    Annotations
    @inline()
  5. def success[S](s: S): Either[F, S]

    Turns the specified value into a success.

    Turns the specified value into a success.

    Definition Classes
    Simple
    Annotations
    @inline()