pub enum LinkError {
UnknownOntology {
ontology: String,
},
MissingPeerArchive {
ontology: String,
},
RootMismatch {
ontology: String,
pinned: ContentAddress,
actual: ContentAddress,
},
AtomAbsent {
ontology: String,
atom: ContentAddress,
},
NotGrounded,
Codec(CodecError),
}Expand description
Why a grounded edge could not be resolved — fail-closed, never a silent bind.
Variants§
UnknownOntology
The edge grounds into an ontology the manifest does not declare (a resolve-time fault).
MissingPeerArchive
A manifest-DECLARED ontology has no supplied peer archive, so the resolver
cannot be built (a build-time fault — distinct from UnknownOntology,
which is an edge into an ontology the manifest never declared).
RootMismatch
A declared ontology was supplied, but its archive’s actual root disagrees with the pinned root — a version/content skew. Refused.
AtomAbsent
The connected ontology holds no atom at the named address.
NotGrounded
The target is a Local edge — not a grounded edge
to resolve. (Callers traverse local edges by name, not through here.)
Codec(CodecError)
A node or archive address could not be derived (codec failure).
Trait Implementations§
impl Eq for LinkError
Source§impl Error for LinkError
impl Error for LinkError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()