Skip to main content

Module errors_ops

Module errors_ops 

Source
Expand description

GAP-SG-143: operational AppError payloads that are bilingual AT CONSTRUCTION.

§Why not errors_msg

errors_msg is English-only because its variants (NotFound, Duplicate, Conflict) are translated at DISPLAY time by the replace-chains in validation::app_error_pt. The variants below — DbBusy, LockBusy, NamespaceError, Embedding — reach the operator through PT helpers that only PREFIX their argument, so an English-only payload would ship a bilingual hybrid: banco ocupado: SQLITE_BUSY after 5 retries.

These builders therefore resolve current the way validation::messages_naming does, and own both wordings in one place.

Functions§

active_namespace_limit_reached
Creating one more namespace would cross MAX_NAMESPACES_ACTIVE.
alloc_label_process_items
Allocation label for the ingest process-item vector.
alloc_label_slot_metadata
Allocation label for the ingest slot-metadata vector.
alloc_label_truncation_entries
Allocation label for the ingest truncation vector.
allocation_would_exceed_memory
try_reserve refused the ingest plan allocation.
batch_embedding_count_mismatch
The embedding backend returned a vector count that does not match the batch it was given, so no pairing is safe.
duplicate_body_hash
The same body is already stored under a different name (dedup by body_hash), so ingest skips the file instead of duplicating it.
llm_slot_acquire_timeout
No LLM concurrency slot came free inside the wait window.
memory_modified_concurrently
A memory row changed between the read and the write of the same transaction, so the update matched zero rows.
name_prefix_exceeds_name_cap
--name-prefix alone consumes the whole name budget.
rename_target_occupied
A rename target is already taken by another ACTIVE memory.
sqlite_busy_after_retries
SQLite stayed busy after the configured retry budget.