Skip to main content

Module error

Module error 

Source
Expand description

Crate-wide error enums (EpochError, CheckpointCompetitionError). Filled by the error_types domain (ERR-*).

§error — crate-wide error types

Introduced by: STR-002 — Module hierarchy (SPEC §13).

Future owners: Phase 2 of IMPLEMENTATION_ORDER.md:

  • ERR-001EpochError enum with all variants
  • ERR-002CheckpointCompetitionError enum
  • ERR-003From conversions and Display messages

Spec reference: SPEC.md §13 — canonical module list; SPEC.md §11 — error taxonomy.

§Content rule

Both error enums derive their surface from the thiserror crate (pinned in Cargo.toml by STR-001). Per SPEC §11, no error variant may leak internal details of the parking_lot::RwLock (lock poisoning does not apply — parking_lot does not poison), nor may any variant wrap a panic-producing path.

§Status at STR-002

Empty aside from the [STR_002_MODULE_PRESENT] sentinel.

Enums§

CheckpointCompetitionError
Errors within the checkpoint competition lifecycle.
EpochError
Primary error type for the dig-epoch crate.