LangExtract.Pipeline.ChunkError (LangExtract v0.8.0)

Copy Markdown View Source

A failed chunk with its byte position in the source and error reason.

Summary

Functions

Builds an error carrying chunk's byte range.

Types

t()

@type t() :: %LangExtract.Pipeline.ChunkError{
  byte_end: non_neg_integer(),
  byte_start: non_neg_integer(),
  reason: term()
}

Functions

from_chunk(chunk, reason)

@spec from_chunk(LangExtract.Chunker.Chunk.t(), term()) :: t()

Builds an error carrying chunk's byte range.