#[non_exhaustive]pub enum EngineContractError {
Show 25 variants
InvalidSchema {
field: &'static str,
expected: &'static str,
found: String,
},
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,
},
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
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.
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()