Skip to main content

Module error

Module error 

Source
Expand description

Error types for the ACDP library.

Error variants align with the wire vocabulary defined by acdp-error.schema.json and RFC-ACDP-0007 §5. The AcdpError::from_wire_error helper converts a [crate::wire_error::WireError] (HTTP response body shape) into a typed variant.

Enums§

AcdpError
Top-level error type.
SupersessionReason
Sub-reason for AcdpError::SupersededTarget. Starts from the details.reason values enumerated by acdp-error.schema.json’s superseded_target description (not_found, lineage_mismatch, version_mismatch, already_superseded, cross_registry_supersession_unsupported) and adds typed reasons this library recognizes beyond what that enum currently lists (LineageWalkFailed, RevocationTypeMismatch) — it is a superset, not a mirror. #[non_exhaustive] plus the Other catch-all below is what keeps a schema addition from being a breaking change here.