ConversionFailed

zio.blocks.schema.SchemaError.ConversionFailed
case class ConversionFailed(source: DynamicOptic, details: String, cause: Option[SchemaError] = ...) extends IntoError

A conversion or validation failed with the message details, optionally caused by the failures in cause.

Its message adds at: and the path when the path is not the root. When cause is set, the message lists the messages of cause under Caused by: instead, without the path.

Attributes

Source
SchemaError.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait IntoError
trait Single
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def message: String

The text of this failure. Most kinds end it with at: and the path.

The text of this failure. Most kinds end it with at: and the path.

Attributes

Definition Classes
Source
SchemaError.scala

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