EncodeFailed

dev.constructive.eo.avro.AvroFailure.EncodeFailed
final case class EncodeFailed(cause: Throwable)

Encoding a value back to Avro binary failed — the write-side counterpart of DecodeFailed. Surfaced by the fallible-build seam (T = Either[Chain[AvroFailure], Array[Byte]]), e.g. AvroBridge's from, when the codec's Any payload can't be written under the target schema. The wrapped Throwable is whatever apache-avro's GenericDatumWriter threw.

Attributes

Source
AvroFailure.scala

Members list

Value members

Inherited methods

def message: String

Human-readable diagnostic. Kept separate from toString so the default enum representation remains useful for structural inspection / pattern-matching-in-tests.

Human-readable diagnostic. Kept separate from toString so the default enum representation remains useful for structural inspection / pattern-matching-in-tests.

Attributes

Inherited from:
AvroFailure
Source
AvroFailure.scala
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