#[non_exhaustive]pub enum PredictionContractError {
Show 45 variants
InvalidEngineContract(EngineContractError),
InvalidDependencyClosure(String),
TextTooLong {
field: &'static str,
bytes: usize,
limit: usize,
},
InvalidToken {
field: &'static str,
value: String,
},
NonFiniteNumber,
InvalidMeasurementPointer(String),
MeasurementPointerMissing(String),
MeasurementPointerNotScalar(String),
MeasurementValueMismatch(String),
TooManyMeasurementPointerComponents {
components: usize,
limit: usize,
},
RawSourceDomainKeyMismatch,
RawSourceRowNotFound,
RawSourceFieldUnavailable(String),
RawSourceValueMismatch,
TooManyBasisReferences {
found: usize,
limit: usize,
},
DuplicateBasisReference,
AvailableBasisEmpty,
AvailableHasReasons,
RequiredUnavailableWithoutReason,
DuplicateUnavailableReason(String),
InvalidUnavailableReasonCode(String),
TooManyUnavailableReasons {
found: usize,
limit: usize,
},
EmptyFacetList,
TooManyFacets {
found: usize,
limit: usize,
},
DuplicateFacetScope,
SourceFormatMismatch,
SourceFormatNotAccepted,
PrimaryInputMismatch,
DependencyClosureCoverageMismatch,
ProvenanceIdentityMismatch,
UnknownProfileFact(String),
UnknownResolvedSetting(String),
UnknownPrimarySource(String),
AvailableScopeNotEvaluatedExactlyOnce,
UnavailableScopeEvaluated,
UnavailableScopeDuplicatedAsGap,
FindingMissingPredictionScope,
FindingScopeNotAvailable,
IdentityMismatch {
contract: &'static str,
},
InvalidSchema {
field: &'static str,
expected: &'static str,
found: String,
},
NonCanonicalOrder(&'static str),
InvalidConsumedContracts,
TooMuchRetainedText {
found: usize,
limit: usize,
},
TooManyAggregateProvenanceRows {
found: usize,
limit: usize,
},
ArithmeticOverflow(&'static str),
}Expand description
A prediction/provenance value violated the immutable V1 contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidEngineContract(EngineContractError)
An embedded profile or settings value was invalid.
InvalidDependencyClosure(String)
An embedded dependency-closure wire was structurally valid but violated its immutable semantic contract.
TextTooLong
A retained string exceeded its per-value bound.
Fields
InvalidToken
A stable token was empty, contained controls, or used invalid syntax.
NonFiniteNumber
A finite-number scalar contained NaN or infinity.
InvalidMeasurementPointer(String)
A measurement pointer was not a canonical measurements-root RFC 6901 pointer.
MeasurementPointerMissing(String)
A measurement pointer did not resolve in the validated contract.
MeasurementPointerNotScalar(String)
A measurement pointer resolved to an object or array rather than a scalar.
MeasurementValueMismatch(String)
A measurement pointer’s retained scalar disagreed with the validated contract.
TooManyMeasurementPointerComponents
A measurement pointer exceeded its component bound.
RawSourceDomainKeyMismatch
A raw-source domain and stable key identify different row kinds.
RawSourceRowNotFound
The stable raw-source row key was absent from the same-load facts.
The field id does not name a scalar on the selected raw-source row.
RawSourceValueMismatch
The retained raw-source scalar disagrees with same-load facts.
TooManyBasisReferences
One facet exceeded the per-facet basis-reference bound.
DuplicateBasisReference
Canonical basis rows contained an exact duplicate.
AvailableBasisEmpty
An available facet had no evidence basis.
AvailableHasReasons
An available facet carried an unavailable reason.
A required-unavailable facet carried no stable reason.
A reason list contained an exact duplicate.
A custom reason code was not a bounded namespaced ASCII code.
One facet exceeded the unavailable-reason bound.
EmptyFacetList
An engine prediction did not contain any facets.
TooManyFacets
One engine prediction exceeded the facet bound.
DuplicateFacetScope
Canonical facets reused a scope.
SourceFormatMismatch
The profile, raw-source binding, and header source formats disagreed.
SourceFormatNotAccepted
The resolved profile does not accept the same-load source format.
PrimaryInputMismatch
Raw-source and dependency-closure primary identities disagreed.
DependencyClosureCoverageMismatch
Raw resource coverage and the same-load dependency closure disagreed.
ProvenanceIdentityMismatch
A prediction refers to a different file provenance identity.
UnknownProfileFact(String)
A basis profile-fact id is absent from the embedded profile.
UnknownResolvedSetting(String)
A basis setting location/id is absent or contradicts the profile descriptor.
UnknownPrimarySource(String)
A basis primary-source id is absent from the embedded profile.
AvailableScopeNotEvaluatedExactlyOnce
An available facet scope was absent or duplicated in completed scopes.
A required-unavailable facet scope was also reported as completed.
A required-unavailable facet was duplicated as an ordinary coverage gap.
FindingMissingPredictionScope
A prediction-bearing finding lacked its required facet binding.
FindingScopeNotAvailable
A finding scope did not name exactly one available facet.
IdentityMismatch
A canonical identity did not match its recomputed preimage.
InvalidSchema
A schema field did not carry its immutable V1 identity.
Fields
NonCanonicalOrder(&'static str)
A canonical ordered collection was supplied out of order.
InvalidConsumedContracts
The exact derived consumed-contract inventory was changed.
TooMuchRetainedText
Aggregate retained text exceeded its file bound.
TooManyAggregateProvenanceRows
Aggregate embedded profile, settings, and raw-source rows exceeded the file bound.
ArithmeticOverflow(&'static str)
Checked accounting overflowed.
Trait Implementations§
Source§impl Clone for PredictionContractError
impl Clone for PredictionContractError
Source§fn clone(&self) -> PredictionContractError
fn clone(&self) -> PredictionContractError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PredictionContractError
impl Debug for PredictionContractError
Source§impl Display for PredictionContractError
impl Display for PredictionContractError
impl Eq for PredictionContractError
Source§impl Error for PredictionContractError
impl Error for PredictionContractError
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()