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

Copy Markdown View Source

Raised (or returned) when parsing, rendering, sanitizing, or highlighting a Carve document fails.

reason holds the underlying cause. Engine failures are {kind, message} where kind is one of :profile_violation, :invalid_ast, :render, :invalid_option or :panic; other reasons include {:highlight, error}, {:invalid_node, term}, {:unknown_ast_type, type}, {:unknown_ast_field, type, key} and :raw_not_allowed.

Summary

Types

t()

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