cadrumo.core.corpus_manifest.errors module¶
Typed error hierarchy for corpus-manifest validation.
Defines the leaf exceptions raised by the corpus-manifest loader and
verifier. All inherit from core.errors.hierarchy.CadrumoError so any
caller catching the framework’s base error type also catches manifest
failures.
- exception CorpusManifestError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CadrumoErrorBase error for any failure in corpus-manifest parsing or validation.
Concrete failure modes derive from this class; callers can catch
CorpusManifestErrorto handle every manifest failure uniformly, or catch a leaf such asCorpusManifestTamperErrorto react to a specific condition.- Parameters:
- Return type:
None
- code¶
- exception CorpusManifestTamperError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CorpusManifestErrorRaised when a manifest’s self-attesting digest does not match its body.
Indicates the manifest body has been edited without recomputing the embedded checksum — usually a sign of corruption or tampering rather than legitimate drift between the manifest and the on-disk corpus.
- Parameters:
- Return type:
None
- code¶
- exception CorpusBundleError(message=None, *, context=None, translated_message=None)[source]¶
Bases:
CorpusManifestErrorBase error for corpus bundle build/verify failures.
Raised for structural bundle problems (not a zip archive, missing or structurally invalid embedded manifest, unsupported manifest version).
- Parameters:
- Return type:
None
- code¶