PB.CEL.Error exception (PB v0.1.0)

Copy Markdown View Source

Unified error raised by CEL evaluation, including protovalidate cel rules.

:phase discriminates :parse, :check, or :eval. Callers rescue PB.CEL.Error once and inspect :phase to discriminate if needed.

Summary

Types

phase()

@type phase() :: :parse | :check | :eval

t()

@type t() :: %PB.CEL.Error{
  __exception__: true,
  details: map() | nil,
  expr_id: integer() | nil,
  location: String.t() | nil,
  message: String.t(),
  offset: non_neg_integer() | nil,
  phase: phase()
}