#[non_exhaustive]pub enum EngineContractError {
Show 42 variants
InvalidSchema {
field: &'static str,
expected: &'static str,
found: String,
},
InvalidV2CoverageWork,
EmptyText {
field: &'static str,
},
TextTooLong {
field: &'static str,
found: usize,
max: usize,
},
TooManyRows {
field: &'static str,
found: usize,
max: usize,
},
TooManyAggregateRows {
found: usize,
max: usize,
},
TooMuchAggregateText {
found: usize,
max: usize,
},
ArithmeticOverflow {
field: &'static str,
},
DuplicateKey {
field: &'static str,
key: String,
},
NonCanonicalOrder {
field: &'static str,
},
InvalidFactInventory,
InvalidFactValue {
fact: EngineFactIdV1,
},
InvalidAcceptedInputs,
InvalidDescriptorDefault {
setting: EngineSettingIdV1,
},
UnknownSourceFact {
source_id: String,
fact: EngineFactIdV1,
},
SourceReferencesNonKnownFact {
source_id: String,
fact: EngineFactIdV1,
},
UnknownSourceSetting {
source_id: String,
setting: EngineSettingIdV1,
},
UnreferencedKnownFact {
fact: EngineFactIdV1,
},
UnreferencedSetting {
setting: EngineSettingIdV1,
},
InvalidSourceTransformPath {
reason: &'static str,
},
UnknownMaterializedSetting {
location: String,
setting: EngineSettingIdV1,
},
WrongSettingScope {
location: String,
setting: EngineSettingIdV1,
},
NonApplicableSetting {
location: String,
setting: EngineSettingIdV1,
},
WrongSettingDomain {
location: String,
setting: EngineSettingIdV1,
},
MissingRequiredSetting {
location: String,
setting: EngineSettingIdV1,
},
InvalidReducedRatio {
numerator: u64,
denominator: u64,
},
InvalidV2FactInventory,
InvalidV2FactValue {
fact: EngineFactIdV2,
},
InvalidV2DescriptorDefault {
setting: EngineSettingIdV2,
},
InvalidV2SourceFact {
source_id: String,
fact: EngineFactIdV2,
},
InvalidV2SourceSetting {
source_id: String,
setting: EngineSettingIdV2,
},
UnreferencedV2Fact {
fact: EngineFactIdV2,
},
UnreferencedV2Setting {
setting: EngineSettingIdV2,
},
UnknownV2MaterializedSetting {
setting: EngineSettingIdV2,
},
WrongV2SettingScope {
setting: EngineSettingIdV2,
},
WrongV2SettingDomain {
setting: EngineSettingIdV2,
},
V2SettingValueOutOfRange {
setting: EngineSettingIdV2,
},
InvalidProfileDefaultOrigin {
setting: EngineSettingIdV2,
},
InvalidV3SettingsSourceFormat {
format: SourceFormatV1,
},
InapplicableV2MaterializedSetting {
setting: EngineSettingIdV2,
format: SourceFormatV1,
},
MissingApplicableV2Setting {
setting: EngineSettingIdV2,
format: SourceFormatV1,
},
IdentityMismatch {
contract: &'static str,
},
}Expand description
Typed violation of the core-owned profile/settings contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSchema
A contract schema id did not match its immutable V1 value.
Fields
InvalidV2CoverageWork
V2 clip coverage and bounded work counters disagreed with retained rows.
EmptyText
A required retained string was empty.
TextTooLong
One retained string exceeded the per-value byte limit.
Fields
TooManyRows
One collection exceeded the V1 row limit.
Fields
TooManyAggregateRows
Aggregate profile/settings rows exceeded the V1 limit.
TooMuchAggregateText
Aggregate retained UTF-8 text exceeded the V1 limit.
Fields
ArithmeticOverflow
Checked arithmetic overflowed while accounting bounded work.
DuplicateKey
A set/map-shaped collection contains a duplicate stable key.
NonCanonicalOrder
A canonical collection is not in its required order.
InvalidFactInventory
The complete closed fact-id inventory is absent or malformed.
InvalidFactValue
A known fact carries a value from another fact domain.
Fields
fact: EngineFactIdV1Fact whose value is invalid.
InvalidAcceptedInputs
The accepted-input list is empty, duplicated, or noncanonical.
InvalidDescriptorDefault
A descriptor’s applicability and default state disagree.
Fields
setting: EngineSettingIdV1Invalid setting descriptor.
UnknownSourceFact
A source references a fact absent from the profile.
SourceReferencesNonKnownFact
A source cites a fact whose state is not known.
UnknownSourceSetting
A source references a descriptor absent from the profile.
UnreferencedKnownFact
No primary source supports a known profile fact.
Fields
fact: EngineFactIdV1Unsupported known fact.
UnreferencedSetting
No primary source supports a setting descriptor.
Fields
setting: EngineSettingIdV1Unsupported descriptor.
InvalidSourceTransformPath
A source-transform path is malformed.
UnknownMaterializedSetting
A materialized setting is absent from the profile.
Fields
setting: EngineSettingIdV1Unknown setting id.
WrongSettingScope
A materialized setting is declared at the wrong scope.
Fields
setting: EngineSettingIdV1Wrong-scope setting id.
NonApplicableSetting
A materialized setting is not applicable to the profile.
Fields
setting: EngineSettingIdV1Non-applicable setting id.
WrongSettingDomain
A materialized value does not match its descriptor domain.
Fields
setting: EngineSettingIdV1Invalid setting id.
MissingRequiredSetting
A required-without-default setting is absent.
Fields
setting: EngineSettingIdV1Missing setting id.
InvalidReducedRatio
A rational was zero, had a zero denominator, or was not reduced.
InvalidV2FactInventory
The complete closed V2 fact inventory was malformed.
InvalidV2FactValue
A V2 fact carried a value from another domain.
Fields
fact: EngineFactIdV2Invalid fact id.
InvalidV2DescriptorDefault
A V2 descriptor carried a default while not applicable.
Fields
setting: EngineSettingIdV2Invalid descriptor id.
InvalidV2SourceFact
A V2 primary source referenced a missing or non-known fact.
InvalidV2SourceSetting
A V2 primary source referenced an absent descriptor.
UnreferencedV2Fact
A known V2 fact had no supporting source.
Fields
fact: EngineFactIdV2Unsupported fact.
UnreferencedV2Setting
A V2 descriptor had no supporting source.
Fields
setting: EngineSettingIdV2Unsupported setting.
UnknownV2MaterializedSetting
A V3 materialized row named no profile descriptor.
Fields
setting: EngineSettingIdV2Unknown setting id.
WrongV2SettingScope
A V3 materialized row appeared at the wrong scope.
Fields
setting: EngineSettingIdV2Wrong-scope setting id.
WrongV2SettingDomain
A V3 value did not match its descriptor domain.
Fields
setting: EngineSettingIdV2Invalid setting id.
V2SettingValueOutOfRange
A bounded setting value was outside its setting-specific range.
Fields
setting: EngineSettingIdV2Out-of-range setting id.
InvalidProfileDefaultOrigin
A row claimed a profile default that disagreed with its descriptor.
Fields
setting: EngineSettingIdV2Mismatched setting id.
InvalidV3SettingsSourceFormat
V3 settings were bound to a format not accepted by their profile.
Fields
format: SourceFormatV1Rejected source format.
InapplicableV2MaterializedSetting
A V3 row materialized a descriptor outside its source applicability.
MissingApplicableV2Setting
An applicable V2 descriptor was omitted from V3 materialization.
IdentityMismatch
A canonical identity does not match its semantic preimage.
Trait Implementations§
Source§impl Clone for EngineContractError
impl Clone for EngineContractError
Source§fn clone(&self) -> EngineContractError
fn clone(&self) -> EngineContractError
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 EngineContractError
impl Debug for EngineContractError
Source§impl Display for EngineContractError
impl Display for EngineContractError
impl Eq for EngineContractError
Source§impl Error for EngineContractError
impl Error for EngineContractError
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()