Class

zio.prelude.ZValidation

Failure

Related Doc: package ZValidation

Permalink

final case class Failure[+W, +E](log: Chunk[W], errors: NonEmptyChunk[E]) extends ZValidation[W, E, Nothing] with Product with Serializable

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

Instance Constructors

  1. new Failure(log: Chunk[W], errors: NonEmptyChunk[E])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def &>[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]

    Permalink

    A symbolic alias for zipParRight.

    A symbolic alias for zipParRight.

    Definition Classes
    ZValidation
  4. final def <&[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, Nothing]

    Permalink

    A symbolic alias for zipParLeft.

    A symbolic alias for zipParLeft.

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

    Permalink

    A symbolic alias for zipPar.

    A symbolic alias for zipPar.

    Definition Classes
    ZValidation
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def ??[W1 >: W](w1: W1): ZValidation[W1, E, Nothing]

    Permalink

    A symbolic alias for log.

    A symbolic alias for log.

    Definition Classes
    ZValidation
  8. final def as[B](b: B): ZValidation[W, E, B]

    Permalink

    Maps the successful value of this ZValidation to the specified constant value.

    Maps the successful value of this ZValidation to the specified constant value.

    Definition Classes
    ZValidation
  9. final def asError[E2](e: E2): ZValidation[W, E2, Nothing]

    Permalink

    Maps the error value of this ZValidation to the specified constant value.

    Maps the error value of this ZValidation to the specified constant value.

    Definition Classes
    ZValidation
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def equals(that: Any): Boolean

    Permalink

    Returns whether this ZValidation and the specified ZValidation are equal to each other.

    Returns whether this ZValidation and the specified ZValidation are equal to each other.

    Definition Classes
    ZValidation → AnyRef → Any
  14. val errors: NonEmptyChunk[E]

    Permalink
  15. lazy val errorsUnordered: NonEmptyMultiSet[E]

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def flatMap[W1 >: W, E1 >: E, B](f: (Nothing) ⇒ ZValidation[W1, E1, B]): ZValidation[W1, E1, B]

    Permalink

    Transforms the value of this ZValidation with the specified validation function if it is a success or returns the value unchanged otherwise.

    Transforms the value of this ZValidation with the specified validation function if it is a success or returns the value unchanged otherwise.

    Definition Classes
    ZValidation
  18. final def flatten[W1 >: W, E1 >: E, B](implicit ev1: <:<[Nothing, ZValidation[W1, E1, B]]): ZValidation[W1, E1, B]

    Permalink

    Returns a ZValidation that is this ZValidation if failing or the inner ZValidation if the outer one succeeds.

    Returns a ZValidation that is this ZValidation if failing or the inner ZValidation if the outer one succeeds. In particular, the sequential aspect of this combinator precludes combining error values of outer and inner ZValidations. This method can be used to "flatten" nested ZValidation.

    Definition Classes
    ZValidation
  19. final def fold[B](failure: (NonEmptyChunk[E]) ⇒ B, success: (Nothing) ⇒ B): B

    Permalink

    Folds over the error and success values of this ZValidation.

    Folds over the error and success values of this ZValidation.

    Definition Classes
    ZValidation
  20. final def forEach[F[+_], B](f: (Nothing) ⇒ F[B])(implicit arg0: IdentityBoth[F], arg1: Covariant[F]): F[ZValidation[W, E, B]]

    Permalink

    Transforms the value of this ZValidation with the specified effectual function if it is a success or returns the value unchanged otherwise.

    Transforms the value of this ZValidation with the specified effectual function if it is a success or returns the value unchanged otherwise.

    Definition Classes
    ZValidation
  21. final def get(implicit ev: <:<[E, Nothing]): Nothing

    Permalink

    Returns the value, because no error has occurred.

    Returns the value, because no error has occurred.

    Definition Classes
    ZValidation
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def getLog: Chunk[W]

    Permalink

    Returns the value of the log.

    Returns the value of the log.

    Definition Classes
    ZValidation
  24. final def getOrElse[A1 >: Nothing](fallback: ⇒ A1): A1

    Permalink

    Returns the value, if successful, or the provided fallback value.

    Returns the value, if successful, or the provided fallback value.

    Definition Classes
    ZValidation
  25. final def getOrElseWith[A1 >: Nothing](f: (NonEmptyChunk[E]) ⇒ A1): A1

    Permalink

    Returns the successful value or handles the errors that have accumulated.

    Returns the successful value or handles the errors that have accumulated.

    Definition Classes
    ZValidation
  26. final def hashCode(): Int

    Permalink
    Definition Classes
    ZValidation → AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def log[W1 >: W](w1: W1): ZValidation[W1, E, Nothing]

    Permalink

    Writes an entry to the log.

    Writes an entry to the log.

    Definition Classes
    ZValidation
  29. val log: Chunk[W]

    Permalink
  30. final def map[B](f: (Nothing) ⇒ B): ZValidation[W, E, B]

    Permalink

    Transforms the successful value of this ZValidation with the specified function.

    Transforms the successful value of this ZValidation with the specified function.

    Definition Classes
    ZValidation
  31. final def mapError[E2](f: (E) ⇒ E2): ZValidation[W, E2, Nothing]

    Permalink

    Transforms the error value of this ZValidation with the specified function.

    Transforms the error value of this ZValidation with the specified function.

    Definition Classes
    ZValidation
  32. final def mapErrorAll[E2](f: (NonEmptyChunk[E]) ⇒ NonEmptyChunk[E2]): ZValidation[W, E2, Nothing]

    Permalink

    Transforms all the error values of this ZValidation with the specified function.

    Transforms all the error values of this ZValidation with the specified function.

    Definition Classes
    ZValidation
  33. final def mapLog[W2](f: (W) ⇒ W2): ZValidation[W2, E, Nothing]

    Permalink

    Transforms the log entries of this ZValidation with the specified function.

    Transforms the log entries of this ZValidation with the specified function.

    Definition Classes
    ZValidation
  34. final def mapLogAll[W2](f: (Chunk[W]) ⇒ Chunk[W2]): ZValidation[W2, E, Nothing]

    Permalink

    Transforms all the log entries of this ZValidation with the specified function.

    Transforms all the log entries of this ZValidation with the specified function.

    Definition Classes
    ZValidation
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def orElse[W1 >: W, E1, A1 >: Nothing](that: ZValidation[W1, E1, A1]): ZValidation[W1, E1, A1]

    Permalink
    Definition Classes
    ZValidation
  39. final def orElseLog[W1 >: W, E1, A1 >: Nothing](that: ZValidation[W1, E1, A1])(implicit ev: <:<[E, W1]): ZValidation[W1, E1, A1]

    Permalink
    Definition Classes
    ZValidation
  40. final def runLog[B]: (Chunk[W], Either[NonEmptyChunk[E], Nothing])

    Permalink

    Exposes the result of this validation function as either a Right with a success of type A or a Left with one or more errors of type E, along with the log.

    Exposes the result of this validation function as either a Right with a success of type A or a Left with one or more errors of type E, along with the log.

    Definition Classes
    ZValidation
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. final def toEither: Either[NonEmptyChunk[E], Nothing]

    Permalink

    Transforms this ZValidation to an Either, discarding the log.

    Transforms this ZValidation to an Either, discarding the log.

    Definition Classes
    ZValidation
  43. final def toEitherMultiSet: Either[NonEmptyMultiSet[E], Nothing]

    Permalink

    Transforms this ZValidation to an Either, discarding the order in which the errors occurred and discarding the log.

    Transforms this ZValidation to an Either, discarding the order in which the errors occurred and discarding the log.

    Definition Classes
    ZValidation
  44. final def toEitherWith[E2](f: (NonEmptyChunk[E]) ⇒ E2): Either[E2, Nothing]

    Permalink

    Transforms this ZValidation to an Either, transforming the accumulated errors and discarding the log.

    Transforms this ZValidation to an Either, transforming the accumulated errors and discarding the log.

    Definition Classes
    ZValidation
  45. final def toOption: Option[Nothing]

    Permalink

    Transforms this ZValidation to an Option, discarding information about the errors and log.

    Transforms this ZValidation to an Option, discarding information about the errors and log.

    Definition Classes
    ZValidation
  46. final def toTry(implicit ev: <:<[E, Throwable]): Try[Nothing]

    Permalink

    Transforms this ZValidation to a Try, discarding all but the first error and the log.

    Transforms this ZValidation to a Try, discarding all but the first error and the log.

    Definition Classes
    ZValidation
  47. final def toZIO: IO[E, Nothing]

    Permalink

    Converts this ZValidation into a ZIO effect, discarding the log.

    Converts this ZValidation into a ZIO effect, discarding the log.

    Definition Classes
    ZValidation
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def zipPar[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, (Nothing, B)]

    Permalink

    Combines this ZValidation with the specified ZValidation, returning a tuple of their results.

    Combines this ZValidation with the specified ZValidation, returning a tuple of their results. Returns either the combined result if both were successes or otherwise returns a failure with all errors.

    Definition Classes
    ZValidation
  52. final def zipParLeft[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, Nothing]

    Permalink

    A variant of zipPar that keeps only the left success value, but returns a failure with all errors if either this ZValidation or the specified ZValidation fail.

    A variant of zipPar that keeps only the left success value, but returns a failure with all errors if either this ZValidation or the specified ZValidation fail.

    Definition Classes
    ZValidation
  53. final def zipParRight[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]

    Permalink

    A variant of zipPar that keeps only the right success value, but returns a failure with all errors if either this ZValidation or the specified ZValidation fail.

    A variant of zipPar that keeps only the right success value, but returns a failure with all errors if either this ZValidation or the specified ZValidation fail.

    Definition Classes
    ZValidation
  54. final def zipWithPar[W1 >: W, E1 >: E, B, C](that: ZValidation[W1, E1, B])(f: (Nothing, B) ⇒ C): ZValidation[W1, E1, C]

    Permalink

    Combines this ZValidation with the specified ZValidation, using the function f to combine their success values.

    Combines this ZValidation with the specified ZValidation, using the function f to combine their success values. Returns either the combined result if both were successes or otherwise returns a failure with all errors.

    Definition Classes
    ZValidation

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ZValidation[W, E, Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped