pub enum NnsProposalError {
Governance(NnsGovernanceError),
InvalidLimit {
limit: u32,
maximum: u32,
},
PageTooLarge {
actual: usize,
requested: u32,
},
MissingProposalIdInPage,
DuplicateProposalId {
proposal_id: u64,
},
ProposalCursorMismatch {
proposal_id: u64,
before_proposal_id: u64,
},
ProposalNotFound {
proposal_id: u64,
},
ProposalIdMismatch {
expected: u64,
actual: Option<u64>,
},
}Expand description
NnsProposalError
Portable failure returned while collecting or assembling proposal reports.
Variants§
Governance(NnsGovernanceError)
Shared Governance request, transport, or provenance validation failed.
InvalidLimit
The requested page size is outside the bounded proposal contract.
PageTooLarge
Governance returned more proposal rows than requested.
MissingProposalIdInPage
A proposal page row did not include its required identifier.
DuplicateProposalId
A proposal page repeated an identifier.
ProposalCursorMismatch
A proposal did not satisfy the exclusive page cursor.
ProposalNotFound
Governance did not return the requested proposal.
ProposalIdMismatch
Governance returned a different proposal than requested.
Trait Implementations§
Source§impl Debug for NnsProposalError
impl Debug for NnsProposalError
Source§impl Display for NnsProposalError
impl Display for NnsProposalError
Source§impl Error for NnsProposalError
impl Error for NnsProposalError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NnsGovernanceError> for NnsProposalError
impl From<NnsGovernanceError> for NnsProposalError
Source§fn from(source: NnsGovernanceError) -> Self
fn from(source: NnsGovernanceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NnsProposalError
impl RefUnwindSafe for NnsProposalError
impl Send for NnsProposalError
impl Sync for NnsProposalError
impl Unpin for NnsProposalError
impl UnsafeUnpin for NnsProposalError
impl UnwindSafe for NnsProposalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more