Carvex.CarveError exception (Carvex v0.0.1)

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} and {:unknown_ast_field, type, key}.

Summary

Types

t()

@type t() :: %Carvex.CarveError{
  __exception__: term(),
  message: String.t(),
  reason: term()
}