LeXtract.Error.Processing exception (lextract v0.1.2)

View Source

Error class for processing pipeline failures.

Covers errors during text processing, chunking, tokenization, alignment, resolution, and other pipeline operations.

Examples

iex> error = LeXtract.Error.Processing.Parsing.exception(
...>   format: :json,
...>   reason: "unexpected token"
...> )
iex> match?(%LeXtract.Error.Processing.Parsing{}, error)
true

Summary

Functions

Create an Elixir.LeXtract.Error.Processing without raising it.

Callback implementation for Exception.message/1.

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %LeXtract.Error.Processing{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  errors: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.LeXtract.Error.Processing without raising it.

Keys

  • :errors

message(map)

Callback implementation for Exception.message/1.