final case class Failure[+W, +E](log: Chunk[W], errors: NonEmptyChunk[E]) extends ZValidation[W, E, Nothing] with Product with Serializable
- Alphabetic
- By Inheritance
- Failure
- Serializable
- Product
- Equals
- ZValidation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Failure(log: Chunk[W], errors: NonEmptyChunk[E])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def &>[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
A symbolic alias for
zipParRight
.A symbolic alias for
zipParRight
.- Definition Classes
- ZValidation
- final def <&[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, Nothing]
A symbolic alias for
zipParLeft
.A symbolic alias for
zipParLeft
.- Definition Classes
- ZValidation
- final def <&>[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, (Nothing, B)]
A symbolic alias for
zipPar
.A symbolic alias for
zipPar
.- Definition Classes
- ZValidation
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ??[W1 >: W](w1: W1): ZValidation[W1, E, Nothing]
A symbolic alias for
log
.A symbolic alias for
log
.- Definition Classes
- ZValidation
- final def as[B](b: B): ZValidation[W, E, B]
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
- final def asError[E2](e: E2): ZValidation[W, E2, Nothing]
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
Returns whether this
ZValidation
and the specifiedZValidation
are equal to each other.Returns whether this
ZValidation
and the specifiedZValidation
are equal to each other.- Definition Classes
- ZValidation → AnyRef → Any
- val errors: NonEmptyChunk[E]
- lazy val errorsUnordered: NonEmptyMultiSet[E]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[W1 >: W, E1 >: E, B](f: (Nothing) => ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
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
- final def flatten[W1 >: W, E1 >: E, B](implicit ev1: <:<[Nothing, ZValidation[W1, E1, B]]): ZValidation[W1, E1, B]
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
- final def fold[B](failure: (NonEmptyChunk[E]) => B, success: (Nothing) => B): B
Folds over the error and success values of this
ZValidation
.Folds over the error and success values of this
ZValidation
.- Definition Classes
- ZValidation
- final def forEach[F[+_], B](f: (Nothing) => F[B])(implicit arg0: IdentityBoth[F], arg1: Covariant[F]): F[ZValidation[W, E, B]]
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
- final def get(implicit ev: <:<[E, Nothing]): Nothing
Returns the value, because no error has occurred.
Returns the value, because no error has occurred.
- Definition Classes
- ZValidation
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getLog: Chunk[W]
Returns the value of the log.
Returns the value of the log.
- Definition Classes
- ZValidation
- final def getOrElse[A1 >: Nothing](fallback: => A1): A1
Returns the value, if successful, or the provided
fallback
value.Returns the value, if successful, or the provided
fallback
value.- Definition Classes
- ZValidation
- final def getOrElseWith[A1 >: Nothing](f: (NonEmptyChunk[E]) => A1): A1
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
- final def hashCode(): Int
- Definition Classes
- ZValidation → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def log[W1 >: W](w1: W1): ZValidation[W1, E, Nothing]
Writes an entry to the log.
Writes an entry to the log.
- Definition Classes
- ZValidation
- val log: Chunk[W]
- final def map[B](f: (Nothing) => B): ZValidation[W, E, B]
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
- final def mapError[E2](f: (E) => E2): ZValidation[W, E2, Nothing]
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
- final def mapErrorAll[E2](f: (NonEmptyChunk[E]) => NonEmptyChunk[E2]): ZValidation[W, E2, Nothing]
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
- final def mapLog[W2](f: (W) => W2): ZValidation[W2, E, Nothing]
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
- final def mapLogAll[W2](f: (Chunk[W]) => Chunk[W2]): ZValidation[W2, E, Nothing]
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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def orElse[W1 >: W, E1, A1 >: Nothing](that: ZValidation[W1, E1, A1]): ZValidation[W1, E1, A1]
- Definition Classes
- ZValidation
- final def orElseLog[W1 >: W, E1, A1 >: Nothing](that: ZValidation[W1, E1, A1])(implicit ev: <:<[E, W1]): ZValidation[W1, E1, A1]
- Definition Classes
- ZValidation
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def runLog[B]: (Chunk[W], Either[NonEmptyChunk[E], Nothing])
Exposes the result of this validation function as either a
Right
with a success of typeA
or aLeft
with one or more errors of typeE
, along with the log.Exposes the result of this validation function as either a
Right
with a success of typeA
or aLeft
with one or more errors of typeE
, along with the log.- Definition Classes
- ZValidation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toEither: Either[NonEmptyChunk[E], Nothing]
Transforms this
ZValidation
to anEither
, discarding the log.Transforms this
ZValidation
to anEither
, discarding the log.- Definition Classes
- ZValidation
- final def toEitherAssociative[E1 >: E](implicit A: Associative[E1]): Either[E1, Nothing]
Transforms this
ZValidation
to anEither
, aggregating errors using providedAssociative
instance, discarding the log.Transforms this
ZValidation
to anEither
, aggregating errors using providedAssociative
instance, discarding the log.- Definition Classes
- ZValidation
- final def toEitherMultiSet: Either[NonEmptyMultiSet[E], Nothing]
Transforms this
ZValidation
to anEither
, discarding the order in which the errors occurred and discarding the log.Transforms this
ZValidation
to anEither
, discarding the order in which the errors occurred and discarding the log.- Definition Classes
- ZValidation
- final def toEitherWith[E2](f: (NonEmptyChunk[E]) => E2): Either[E2, Nothing]
Transforms this
ZValidation
to anEither
, transforming the accumulated errors and discarding the log.Transforms this
ZValidation
to anEither
, transforming the accumulated errors and discarding the log.- Definition Classes
- ZValidation
- final def toOption: Option[Nothing]
Transforms this
ZValidation
to anOption
, discarding information about the errors and log.Transforms this
ZValidation
to anOption
, discarding information about the errors and log.- Definition Classes
- ZValidation
- final def toTry(implicit ev: <:<[E, Throwable]): Try[Nothing]
Transforms this
ZValidation
to aTry
, discarding all but the first error and the log.Transforms this
ZValidation
to aTry
, discarding all but the first error and the log.- Definition Classes
- ZValidation
- final def toZIO: IO[E, Nothing]
Converts this
ZValidation
into aZIO
effect, discarding the log.Converts this
ZValidation
into aZIO
effect, discarding the log.- Definition Classes
- ZValidation
- final def toZIOAssociative[E1 >: E](implicit A: Associative[E1]): IO[E1, Nothing]
Transforms this
ZValidation
to anZIO
effect, aggregating errors using providedAssociative
instance, discarding the log.Transforms this
ZValidation
to anZIO
effect, aggregating errors using providedAssociative
instance, discarding the log.- Definition Classes
- ZValidation
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def zipPar[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, (Nothing, B)]
Combines this
ZValidation
with the specifiedZValidation
, returning a tuple of their results.Combines this
ZValidation
with the specifiedZValidation
, 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
- final def zipParLeft[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, Nothing]
A variant of
zipPar
that keeps only the left success value, but returns a failure with all errors if either thisZValidation
or the specifiedZValidation
fail.A variant of
zipPar
that keeps only the left success value, but returns a failure with all errors if either thisZValidation
or the specifiedZValidation
fail.- Definition Classes
- ZValidation
- final def zipParRight[W1 >: W, E1 >: E, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
A variant of
zipPar
that keeps only the right success value, but returns a failure with all errors if either thisZValidation
or the specifiedZValidation
fail.A variant of
zipPar
that keeps only the right success value, but returns a failure with all errors if either thisZValidation
or the specifiedZValidation
fail.- Definition Classes
- ZValidation
- final def zipWithPar[W1 >: W, E1 >: E, B, C](that: ZValidation[W1, E1, B])(f: (Nothing, B) => C): ZValidation[W1, E1, C]
Combines this
ZValidation
with the specifiedZValidation
, using the functionf
to combine their success values.Combines this
ZValidation
with the specifiedZValidation
, using the functionf
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