Markup.Djot.Error exception (Markup.Djot v0.1.0)

Copy Markdown View Source

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}.

Summary

Types

t()

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