pub enum NnsProposalActivityError {
InvalidCollectionState {
reason: String,
},
CollectionNotComplete {
status: NnsGovernanceCollectionStatus,
},
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,
},
AccountingOverflow {
field: &'static str,
},
}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: NnsGovernanceCollectionStatusCurrent 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.
AccountingOverflow
A row-count conversion or aggregate increment exceeded u64.
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
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()