ErrorWrapper

dev.argon.util.async.ErrorWrapper
See theErrorWrapper companion trait
object ErrorWrapper

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final class Context[E]

Attributes

Supertypes
class Object
trait Matchable
class Any
abstract class WrappedErrorBase[E](val cause: Cause[E]) extends Exception

Attributes

Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Types

type Aux[E, WEX <: Throwable] = ErrorWrapper[E] { type EX = WEX; }

Value members

Concrete methods

def apply[E](using errorWrapper: ErrorWrapper[E]): ErrorWrapper[E]
def forWrappedError[E, EXImpl <: WrappedErrorBase[E]](create: Cause[E] => EXImpl)(using TypeTest[Any, EXImpl]): ErrorWrapper[E]
def unwrapEffect[R, E, A](a: ZIO[R, Throwable, A])(using errorWrapper: ErrorWrapper[E]): ZIO[R, E, A]
def unwrapStream[R, E, A](a: ZStream[R, Throwable, A])(using errorWrapper: ErrorWrapper[E]): ZStream[R, E, A]
def wrapEffect[R, E, A](a: ZIO[R, E, A])(using errorWrapper: ErrorWrapper[E]): ZIO[R, errorWrapper.EX, A]
def wrapStream[R, E, A](a: ZStream[R, E, A])(using errorWrapper: ErrorWrapper[E]): ZStream[R, errorWrapper.EX, A]

Givens

Givens