ErrorCreation

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

Attributes

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

Members list

Concise view

Type members

Inherited types

type of errors: exceptions or failure messages

type of errors: exceptions or failure messages

Attributes

Inherited from:
ErrorTypes
Source:
ErrorEffect.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:
ErrorEffect.scala

Attributes

Inherited from:
ErrorTypes
Source:
ErrorEffect.scala

Attributes

Inherited from:
ErrorTypes
Source:
ErrorEffect.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:
ErrorEffect.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:
ErrorEffect.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:
ErrorEffect.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:
ErrorEffect.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:
ErrorEffect.scala