Packages

A CEL (Common Expression Language) parser and interpreter in pure Gleam

Current section

Files

Jump to
cel src cel@interpreter@error.erl
Raw

src/cel@interpreter@error.erl

-module(cel@interpreter@error).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([context_error/0, execution_error/0]).
-type context_error() :: {unknown_identifier, binary()} |
{unknown_function, binary()} |
{no_such_key, cel@parser:member()} |
{invalid_member_parent, cel@interpreter@value:type(), cel@parser:member()}.
-type execution_error() :: {context_error, context_error()} |
{unsupported_binop,
cel@interpreter@value:type(),
binary(),
cel@interpreter@value:type()} |
{unsupported_unary, binary(), cel@interpreter@value:type()} |
{unexpected_type,
list(cel@interpreter@value:type()),
cel@interpreter@value:type(),
binary()} |
{invalid_value_as_key, cel@interpreter@value:value()} |
{index_out_of_bounds, integer(), integer()} |
{unsupported_ternary_condition, cel@interpreter@value:type()} |
arithmetic_error |
{invalid_function_args, binary()} |
{function_expected_this, binary()}.