Failure

halotukozak.alpaca.Result.Failure
final case class Failure[+Ctx, +Value, +Err](ctx: Ctx, recovered: Option[Value], errors: ::[Err])

Some input was not accepted; errors says what and where, in input order. recovered is the value produced anyway when an error-handling strategy skipped past the errors, None when the run stopped at the first one. errors is never empty, and as a :: it is a plain List.

Attributes

Source
Result.scala

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
def toEither: Either[::[Err], Value]

The value on the right, or the errors on the left.

The value on the right, or the errors on the left.

Attributes

Inherited from:
Result
Source
Result.scala
def toOption: Option[Value]

The value, or None if there were errors.

The value, or None if there were errors.

Attributes

Inherited from:
Result
Source
Result.scala