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

View Source

Error class for external service and resource failures.

Includes errors from file I/O, API calls, LLM requests, tokenizer loading, and other external dependencies.

Examples

iex> error = LeXtract.Error.External.TemplateRead.exception(
...>   path: "/tmp/template.json",
...>   reason: :enoent
...> )
iex> match?(%LeXtract.Error.External.TemplateRead{}, error)
true

Summary

Functions

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

Callback implementation for Exception.message/1.

Functions

exception(args)

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

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

Keys

  • :errors

message(map)

Callback implementation for Exception.message/1.