# `LeXtract.Error.External`
[🔗](https://github.com/YgorCastor/lextract.git/blob/main/lib/lextract/error/external.ex#L1)

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

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %LeXtract.Error.External{
  __exception__: term(),
  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`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
