Skip to main content

Crate icydb_diagnostic_code

Crate icydb_diagnostic_code 

Source
Expand description

Module: lib Responsibility: compact diagnostic identity and public numeric error-code mapping. Does not own: rich diagnostic prose, Candid wire types, or runtime error construction. Boundary: maps rich internal diagnostic categories to stable compact public codes.

This crate intentionally contains no rich diagnostic prose or Candid wire types. Production canister builds collapse diagnostics to numeric wire codes before they cross the public canister boundary. Debug output is numeric for the same reason: host tooling can recover labels from the code table without making every wasm canister retain those labels.

Structs§

Diagnostic
Diagnostic
ErrorCode
ErrorCode

Enums§

DiagnosticCode
DiagnosticCode
DiagnosticDetail
DiagnosticDetail
DiagnosticFactTag
Stable semantic identity for one numeric public diagnostic fact.
ErrorClass
ErrorClass
ErrorOrigin
ErrorOrigin
QueryErrorKind
QueryErrorKind
QueryProjectionCode
QueryProjectionCode
QueryReadAdmissionCode
QueryReadAdmissionCode
QueryResultShapeCode
QueryResultShapeCode
RuntimeBoundaryCode
RuntimeBoundaryCode
RuntimeErrorKind
RuntimeErrorKind
SchemaDdlAdmissionCode
SchemaDdlAdmissionCode
SchemaMigrationCode
Machine-readable source-migration rejection or lifecycle finding.
SqlFeatureCode
SqlFeatureCode
SqlLoweringCode
SqlLoweringCode
SqlSurfaceMismatchCode
SqlSurfaceMismatchCode
SqlWriteBoundaryCode
SqlWriteBoundaryCode

Constants§

MAX_PUBLIC_DIAGNOSTIC_FACTS
Maximum number of numeric facts carried by one public error.

Functions§

pack_u32_pair
Pack two accepted u32 identities into one fact value without narrowing.
unpack_u32_pair
Recover the two accepted identities from one packed fact value.