pub enum NnsProposalActivityError {
Show 13 variants
InvalidCollectionState {
reason: String,
},
CollectionNotComplete {
status: NnsProposalCollectionStatus,
},
InvalidTimeWindow {
from_proposal_timestamp_seconds: u64,
until_proposal_timestamp_seconds: u64,
},
ProposalCountMismatch {
expected: u64,
actual: u64,
},
MissingProposalId,
ZeroProposalId,
DuplicateProposalId {
proposal_id: u64,
},
ZeroProposalTimestamp {
proposal_id: u64,
},
TopicClassificationMismatch {
proposal_id: u64,
topic: i32,
actual: NnsProposalTopic,
expected: NnsProposalTopic,
},
StatusClassificationMismatch {
proposal_id: u64,
status: i32,
actual: NnsProposalStatus,
expected: NnsProposalStatus,
},
RewardStatusClassificationMismatch {
proposal_id: u64,
reward_status: i32,
actual: NnsProposalRewardStatus,
expected: NnsProposalRewardStatus,
},
AccountingOverflow {
field: &'static str,
},
InvalidReport(NnsProposalActivityValidationError),
}Expand description
NnsProposalActivityError
Deterministic validation or accounting failure from local proposal activity projection.
Variants§
InvalidCollectionState
The supplied collection state failed its shared continuation invariants.
CollectionNotComplete
The collection stopped without observing Governance API exhaustion.
Fields
status: NnsProposalCollectionStatusCurrent lifecycle of the otherwise valid collection state.
InvalidTimeWindow
The requested half-open proposal time window is empty or reversed.
Fields
ProposalCountMismatch
The supplied rows do not match the collection’s admitted-row accounting.
Fields
MissingProposalId
A supplied row has no proposal identifier.
ZeroProposalId
A supplied row uses the reserved zero proposal identifier.
DuplicateProposalId
A supplied proposal identifier occurs more than once.
ZeroProposalTimestamp
A supplied proposal has no meaningful creation timestamp.
TopicClassificationMismatch
A typed topic classification disagrees with its raw code.
Fields
actual: NnsProposalTopicClassification supplied by the row.
expected: NnsProposalTopicClassification derived from the raw code.
StatusClassificationMismatch
A typed decision-status classification disagrees with its raw code.
Fields
actual: NnsProposalStatusClassification supplied by the row.
expected: NnsProposalStatusClassification derived from the raw code.
RewardStatusClassificationMismatch
A typed reward-status classification disagrees with its raw code.
Fields
actual: NnsProposalRewardStatusClassification supplied by the row.
expected: NnsProposalRewardStatusClassification derived from the raw code.
AccountingOverflow
A row-count conversion or aggregate increment exceeded u64.
InvalidReport(NnsProposalActivityValidationError)
The projected report failed its shared publication invariants.
Trait Implementations§
Source§impl Debug for NnsProposalActivityError
impl Debug for NnsProposalActivityError
Source§impl Display for NnsProposalActivityError
impl Display for NnsProposalActivityError
Source§impl Error for NnsProposalActivityError
impl Error for NnsProposalActivityError
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()