pub enum GraphContractError {
Show 16 variants
InvalidProjectInstanceId {
reason: &'static str,
},
InvalidIdentityText {
reason: &'static str,
},
InvalidRepositoryPath(CoreError),
InvalidStableKeyDigest,
InvalidResolutionKeyDomain,
InvalidResolutionKeyIdentity,
StableKeyCollision {
digest: String,
},
ProjectQualificationMismatch,
ResolutionKeyOwnerMismatch,
CrossProjectRelation,
GenerationMismatch {
context: &'static str,
},
InvalidGeneration,
InvalidResolution {
reason: &'static str,
},
InvalidSourceSpan {
reason: &'static str,
},
InvalidCoverage {
reason: &'static str,
},
InvalidLimits {
reason: &'static str,
},
}Expand description
Failure while constructing or reconciling typed graph contracts.
Variants§
InvalidProjectInstanceId
A project instance identifier was malformed or used the zero sentinel.
InvalidIdentityText
An identity component was blank, padded, too large, or contained control data.
InvalidRepositoryPath(CoreError)
An existing repository path validator rejected a graph path.
InvalidStableKeyDigest
A persisted stable key digest did not match its canonical identity.
InvalidResolutionKeyDomain
A persisted canonical resolution-key domain was not supported.
InvalidResolutionKeyIdentity
A portable canonical resolution identity was malformed or oversized.
StableKeyCollision
Two distinct canonical identities claimed the same compact key.
ProjectQualificationMismatch
A persisted entity key did not retain its project-qualified prefix.
ResolutionKeyOwnerMismatch
A canonical resolution key and its graph owner belonged to different projects.
CrossProjectRelation
A resolved relationship crossed project identity without federation.
GenerationMismatch
Related graph records did not belong to one complete publication.
InvalidGeneration
A derived graph record claimed the pre-publication zero generation.
InvalidResolution
A resolution retained a target or selector that did not identify one entity.
InvalidSourceSpan
A source span used an invalid line or ordering.
InvalidCoverage
Coverage state and counts disagreed.
InvalidLimits
A query budget was zero or exceeded the absolute product ceiling.
Trait Implementations§
Source§impl Debug for GraphContractError
impl Debug for GraphContractError
Source§impl Display for GraphContractError
impl Display for GraphContractError
Source§impl Error for GraphContractError
impl Error for GraphContractError
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()