ErrorCreation

org.atnos.eff.ErrorCreation
trait ErrorCreation[F] extends ErrorTypes[F]

Attributes

Source
ErrorCreation.scala
Graph
Supertypes
trait ErrorTypes[F]
class Object
trait Matchable
class Any
Known subtypes
trait ErrorEffect[F]
object ErrorEffect

Members list

Type members

Inherited types

type Error = Either[Throwable, F]

type of errors: exceptions or failure messages

type of errors: exceptions or failure messages

Attributes

Inherited from:
ErrorTypes
Source
ErrorTypes.scala
type ErrorOrOk[A] = Evaluate[F, A]

base type for this effect: either an error or a computation to evaluate a "by-name" value

base type for this effect: either an error or a computation to evaluate a "by-name" value

Attributes

Inherited from:
ErrorTypes
Source
ErrorTypes.scala
type _ErrorOrOk[R] = Member[ErrorOrOk, R]

Attributes

Inherited from:
ErrorTypes
Source
ErrorTypes.scala
type _errorOrOk[R] = MemberIn[ErrorOrOk, R]

Attributes

Inherited from:
ErrorTypes
Source
ErrorTypes.scala

Value members

Concrete methods

def error[R : _errorOrOk, A](error: Error): Eff[R, A]

create an Eff value from an error

create an Eff value from an error

Attributes

Source
ErrorCreation.scala
def eval[R : _errorOrOk, A](a: Eval[A]): Eff[R, A]

create an Eff value from a computation

create an Eff value from a computation

Attributes

Source
ErrorCreation.scala
def exception[R : _errorOrOk, A](t: Throwable): Eff[R, A]

create an Eff value from an exception

create an Eff value from an exception

Attributes

Source
ErrorCreation.scala
def fail[R : _errorOrOk, A](failure: F): Eff[R, A]

create an Eff value from a failure

create an Eff value from a failure

Attributes

Source
ErrorCreation.scala
def ok[R : _errorOrOk, A](a: => A): Eff[R, A]

create an Eff value from a computation

create an Eff value from a computation

Attributes

Source
ErrorCreation.scala