Error codes
Every error aontu raises carries a code, and every code has a class. The class says what kind of thing went wrong, which is what decides your next move.
This is the registry itself, not a description of it:
test/spec/errcodes.tsv
is a shared contract both implementations execute, and each asserts set
equality against: a code in one engine and not the file fails that
engine's suite. Codes are append-only; renames are forbidden.
Machine-readable: /errors.json,
or /errors/<code>.json for one.
parse 53
the text is not a document: fix the syntax at the site the frame points at
-
abnf_grammar -
alias_colon -
alias_in_path -
alias_not_toplevel -
bare_punct -
decimal_syntax -
each_data -
elided_value -
emit_body -
emit_data -
emit_table -
emit_template -
esc_variant -
export_arg -
filter_data -
form_data -
func_arity -
include_denied -
include_extension -
incomplete_expression -
inverse_name -
merge_conflict -
module_integrity -
module_local -
module_missing -
module_moved -
module_path -
negative -
not_number -
pack_data -
pack_key -
parse -
parse_arg -
parse_bad_src -
parse_unknown -
patch_assignment -
path_address -
pref_implicit_bag -
refer_address -
rel_address -
render_path -
render_profile -
rep_pattern -
rep_sub -
replace_overlap -
replace_unused -
reserved_key -
sort_dir -
split_sep -
syntax -
unify_no_src -
usc_malformed -
view_line_break
conflict 55
two values cannot both hold: one of them is wrong: aontu model why names both and where they were written
-
aggregate_data -
aggregate_empty -
arg -
close -
closed -
constraint -
constraint_pattern -
decimal_budget -
divide_by_zero -
emit_none -
emit_ref -
empty -
empty-dist -
exact_float_mix -
float_overflow -
func -
func_arg -
func:family -
inexact_divide -
inexact_integer_sum -
invalid-arg -
join_member -
key_level -
list -
list_length -
literal_nil -
lossy_integer_literal -
make -
map -
match_none -
must -
nil_gen -
no_first_arg -
no_scalar_unify -
not-scalar-type -
op -
op:family -
op[family -
operate -
parse_failed -
pick_key -
place_pair -
pref_rank_clash -
relation_cycle -
relation_inverse_missing -
render_lang -
render_strict -
replace_value -
resolve -
scalar_kind -
scalar_value -
scalar-type -
sort_domain -
sort_key -
unite
incomplete 11
nothing contradicts, but the value is not concrete: supply what is missing, or accept it with --partial
reference 27
a path names nothing: check the spelling; aontu model get $ --keys lists what is there
-
import_not_exported -
invalid_var_kind -
multisource_not_found -
no_path -
patch_ambiguous -
patch_not_editable -
path_cycle -
ref -
ref[family -
refer_unresolved -
rel_unresolved -
render_unit -
unknown_function -
unknown_var -
var -
var[family -
view_at_required -
view_document_shape -
view_group_required -
view_kind_unknown -
view_profile_unknown -
view_relation_ambiguous -
view_relation_unknown -
view_sets_required -
view_sets_shape -
view_style_profile -
view_style_unknown
compat 13
a change breaks an earlier version: that is aontu subsume / aontu breaking talking: widen the change or version it
budget 7
evaluation hit a deterministic limit: usually a cycle; simplify, or raise the budget deliberately
internal 6
the engine surprised itself: a bug worth reporting