object ProcessResult extends WithError[ProcessError]
- Source
- ProcessResult.scala
- Alphabetic
- By Inheritance
- ProcessResult
- WithError
- WithDefault
- Simple
- Simple
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply[S](s: => S): Either[ProcessError, S]
Attempts to evaluate the specified expression.
Attempts to evaluate the specified expression.
- Definition Classes
- WithDefault
- Annotations
- @inline()
- def failure(f: ProcessError): Either[ProcessError, Nothing]
Turns the specified value into a failure.
Turns the specified value into a failure.
- Definition Classes
- Simple
- Annotations
- @inline()
- def fromThrowable(t: Throwable): ProcessError
Turns an exception into an error.
Turns an exception into an error.
- Definition Classes
- WithError → WithDefault
- def fromTry[S](t: Try[S]): Either[ProcessError, S]
Turns the specified
Try
into a result.Turns the specified
Try
into a result.- Definition Classes
- WithDefault
- Annotations
- @inline()
- def sequence[S, M[X] <: IterableOnce[X]](rs: M[Either[ProcessError, S]])(implicit bf: BuildFrom[M[Either[ProcessError, S]], S, M[S]]): Either[ProcessError, 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()
- def success[S](s: S): Either[ProcessError, S]
Turns the specified value into a success.
Turns the specified value into a success.
- Definition Classes
- Simple
- Annotations
- @inline()