Packages

c

zio.Exit

Failure

final case class Failure[+E](cause: Cause[E]) extends Exit[E, Nothing] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Failure
  2. Exit
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Failure(cause: Cause[E])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def &>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Parallelly zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

    Parallelly zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

    Definition Classes
    Exit
  4. final def *>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Sequentially zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

    Definition Classes
    Exit
  5. final def <&[E1 >: E, B](that: Exit[E1, B]): Exit[E1, Nothing]

    Parallelly zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

    Parallelly zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

    Definition Classes
    Exit
  6. final def <&>[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[Nothing, B]): Exit[E1, Out]

    Parallelly zips the this result with the specified result or else returns the failed Cause[E1]

    Parallelly zips the this result with the specified result or else returns the failed Cause[E1]

    Definition Classes
    Exit
  7. final def <*[E1 >: E, B](that: Exit[E1, B]): Exit[E1, Nothing]

    Sequentially zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

    Definition Classes
    Exit
  8. final def <*>[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[Nothing, B]): Exit[E1, Out]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Definition Classes
    Exit
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def as[B](b: B): Exit[E, B]

    Replaces the success value with the one provided.

    Replaces the success value with the one provided.

    Definition Classes
    Exit
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. val cause: Cause[E]
  13. final def causeOption: Option[Cause[E]]

    Returns an option of the cause of failure.

    Returns an option of the cause of failure.

    Definition Classes
    Exit
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def exists(p: (Nothing) ⇒ Boolean): Boolean
    Definition Classes
    Exit
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def flatMap[E1 >: E, A1](f: (Nothing) ⇒ Exit[E1, A1]): Exit[E1, A1]

    Flat maps over the value type.

    Flat maps over the value type.

    Definition Classes
    Exit
  19. final def flatMapZIO[E1 >: E, R, E2, A1](f: (Nothing) ⇒ ZIO[R, E2, Exit[E1, A1]]): ZIO[R, E2, Exit[E1, A1]]

    Flat maps over the value type.

    Flat maps over the value type.

    Definition Classes
    Exit
  20. final def flatten[E1 >: E, B](implicit ev: <:<[Nothing, Exit[E1, B]]): Exit[E1, B]

    Flattens an Exit of an Exit into a single Exit value.

    Flattens an Exit of an Exit into a single Exit value.

    Definition Classes
    Exit
  21. final def fold[Z](failed: (Cause[E]) ⇒ Z, completed: (Nothing) ⇒ Z): Z

    Folds over the value or cause.

    Folds over the value or cause.

    Definition Classes
    Exit
  22. final def foldZIO[R, E1, B](failed: (Cause[E]) ⇒ ZIO[R, E1, B], completed: (Nothing) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, E1, B]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Definition Classes
    Exit
  23. final def foreach[R, E1 >: E, B](f: (Nothing) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, Nothing, Exit[E1, B]]

    Applies the function f to the successful result of the Exit and returns the result in a new Exit.

    Applies the function f to the successful result of the Exit and returns the result in a new Exit.

    Definition Classes
    Exit
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def getOrElse[A1 >: Nothing](orElse: (Cause[E]) ⇒ A1): A1

    Retrieves the A if succeeded, or else returns the specified default A.

    Retrieves the A if succeeded, or else returns the specified default A.

    Definition Classes
    Exit
  26. final def isFailure: Boolean

    Determines if the result is a failure.

    Determines if the result is a failure.

    Definition Classes
    Exit
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def isInterrupted: Boolean

    Determines if the result is interrupted.

    Determines if the result is interrupted.

    Definition Classes
    Exit
  29. final def isSuccess: Boolean

    Determines if the result is a success.

    Determines if the result is a success.

    Definition Classes
    Exit
  30. final def map[A1](f: (Nothing) ⇒ A1): Exit[E, A1]

    Maps over the value type.

    Maps over the value type.

    Definition Classes
    Exit
  31. final def mapBoth[E1, A1](f: (E) ⇒ E1, g: (Nothing) ⇒ A1): Exit[E1, A1]

    Maps over both the error and value type.

    Maps over both the error and value type.

    Definition Classes
    Exit
  32. final def mapError[E1](f: (E) ⇒ E1): Exit[E1, Nothing]

    Maps over the error type.

    Maps over the error type.

    Definition Classes
    Exit
  33. final def mapErrorCause[E1](f: (Cause[E]) ⇒ Cause[E1]): Exit[E1, Nothing]

    Maps over the cause type.

    Maps over the cause type.

    Definition Classes
    Exit
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def orElseFail[E1](e1: ⇒ E1): Exit[E1, Nothing]

    Replaces the error value with the one provided.

    Replaces the error value with the one provided.

    Definition Classes
    Exit
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. final def toEither: Either[Throwable, Nothing]

    Converts the Exit to an Either[Throwable, A], by wrapping the cause in FiberFailure (if the result is failed).

    Converts the Exit to an Either[Throwable, A], by wrapping the cause in FiberFailure (if the result is failed).

    Definition Classes
    Exit
  40. final def toZIO(implicit trace: ZTraceElement): IO[E, Nothing]

    Converts the Exit to a ZIO effect.

    Converts the Exit to a ZIO effect.

    Definition Classes
    Exit
  41. final def unit: Exit[E, Unit]

    Discards the value.

    Discards the value.

    Definition Classes
    Exit
  42. final def untraced: Exit[E, Nothing]

    Returns an untraced exit value.

    Returns an untraced exit value.

    Definition Classes
    Exit
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. final def zip[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[Nothing, B]): Exit[E1, Out]

    Named alias for <*>.

    Named alias for <*>.

    Definition Classes
    Exit
  47. final def zipLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, Nothing]

    Named alias for <*.

    Named alias for <*.

    Definition Classes
    Exit
  48. final def zipPar[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[Nothing, B]): Exit[E1, Out]

    Named alias for <&>.

    Named alias for <&>.

    Definition Classes
    Exit
  49. final def zipParLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, Nothing]

    Named alias for <&.

    Named alias for <&.

    Definition Classes
    Exit
  50. final def zipParRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Named alias for &>.

    Named alias for &>.

    Definition Classes
    Exit
  51. final def zipRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Named alias for *>.

    Named alias for *>.

    Definition Classes
    Exit
  52. final def zipWith[E1 >: E, B, C](that: Exit[E1, B])(f: (Nothing, B) ⇒ C, g: (Cause[E], Cause[E1]) ⇒ Cause[E1]): Exit[E1, C]

    Zips this together with the specified result using the combination functions.

    Zips this together with the specified result using the combination functions.

    Definition Classes
    Exit

Deprecated Value Members

  1. final def bimap[E1, A1](f: (E) ⇒ E1, g: (Nothing) ⇒ A1): Exit[E1, A1]

    Maps over both the error and value type.

    Maps over both the error and value type.

    Definition Classes
    Exit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapBoth

  2. final def flatMapM[E1 >: E, R, E2, A1](f: (Nothing) ⇒ ZIO[R, E2, Exit[E1, A1]]): ZIO[R, E2, Exit[E1, A1]]

    Flat maps over the value type.

    Flat maps over the value type.

    Definition Classes
    Exit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use flatMapZIO

  3. final def foldM[R, E1, B](failed: (Cause[E]) ⇒ ZIO[R, E1, B], completed: (Nothing) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, E1, B]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Definition Classes
    Exit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldZIO

  4. final def interrupted: Boolean

    Determines if the result is interrupted.

    Determines if the result is interrupted.

    Definition Classes
    Exit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isInterrupted

  5. final def succeeded: Boolean

    Determines if the result is a success.

    Determines if the result is a success.

    Definition Classes
    Exit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isSuccess

Inherited from Exit[E, Nothing]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped