# `Markup.Djot.Error`
[🔗](https://github.com/paradox460/markup/blob/markup_djot-v0.1.0/markup_djot/lib/markup/djot/error.ex#L1)

Returned (or raised) when rendering, sanitizing, or highlighting a Djot document fails.

`reason` holds the underlying cause, e.g. the native error message or `{:highlight, error}`.

# `t`

```elixir
@type t() :: %Markup.Djot.Error{
  __exception__: term(),
  message: String.t(),
  reason: term()
}
```

---

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