Skip to main content

Module error

Module error 

Source
Expand description

Typed errors for the partial wire format and merge surface (ADR-0031, generalized in ADR-0032).

These variants live in vernier-partial so all three paradigm crates (vernier-core, vernier-semantic, vernier-panoptic) share one vocabulary. Each paradigm’s top-level error type wraps PartialError via a single From arm so the FFI can map the five Python exception classes uniformly.

The PartialFormatErrorKind::tag strings are part of the public Python surface — tests assert against them — and must stay stable across format-version bumps.

Enums§

PartialError
Top-level error returned by the encode/decode and merge surface in this crate. Each variant maps 1:1 to one of the five Python exception classes (PartialFormatMismatch, PartialDatasetMismatch, PartialParamsMismatch, PartialPartitionOverlap, PartialRankCollision).
PartialFormatErrorKind
Sub-discriminator for PartialError::Format. The validation pipeline runs cheapest-first, so the variant also indicates how far the validator got before tripping.