OpenResult

kantan.codecs.resource.OpenResult
object OpenResult extends WithError[OpenError]

Attributes

Graph
Supertypes
trait Simple[OpenError]
trait Simple[OpenError]
class Object
trait Matchable
class Any
Show all
Self type
OpenResult.type

Members list

Value members

Inherited methods

def apply[S](s: => S): Either[OpenError, S]

Attempts to evaluate the specified expression.

Attempts to evaluate the specified expression.

Attributes

Inherited from:
WithDefault
def failure(f: OpenError): Either[OpenError, Nothing]

Turns the specified value into a failure.

Turns the specified value into a failure.

Attributes

Inherited from:
Simple
override def fromThrowable(t: Throwable): OpenError

Turns an exception into an error.

Turns an exception into an error.

Attributes

Definition Classes
Inherited from:
WithError
def fromTry[S](t: Try[S]): Either[OpenError, S]

Turns the specified Try into a result.

Turns the specified Try into a result.

Attributes

Inherited from:
WithDefault
def sequence[S, M <: (IterableOnce)](rs: M[Either[OpenError, S]])(implicit bf: BuildFrom[M[Either[OpenError, S]], S, M[S]]): Either[OpenError, M[S]]

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

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

Attributes

Inherited from:
Simple
def success[S](s: S): Either[OpenError, S]

Turns the specified value into a success.

Turns the specified value into a success.

Attributes

Inherited from:
Simple