Enum noble_democracy::Error[][src]

pub enum Error<T: Config> {
    ValueLow,
    ProposalMissing,
    BadIndex,
    AlreadyCanceled,
    DuplicateProposal,
    ProposalBlacklisted,
    NotSimpleMajority,
    InvalidHash,
    NoProposal,
    AlreadyVetoed,
    NotDelegated,
    DuplicatePreimage,
    NotImminent,
    TooEarly,
    Imminent,
    PreimageMissing,
    ReferendumInvalid,
    PreimageInvalid,
    NoneWaiting,
    NotLocked,
    NotExpired,
    NotVoter,
    NoPermission,
    AlreadyDelegating,
    Overflow,
    Underflow,
    InsufficientFunds,
    NotDelegating,
    VotesExist,
    InstantNotAllowed,
    Nonsense,
    WrongUpperBound,
    MaxVotesReached,
    InvalidWitness,
    TooManyProposals,
    // some variants omitted
}

Variants

ValueLow

Value too low

ProposalMissing

Proposal does not exist

BadIndex

Unknown index

AlreadyCanceled

Cannot cancel the same proposal twice

DuplicateProposal

Proposal already made

ProposalBlacklisted

Proposal still blacklisted

NotSimpleMajority

Next external proposal not simple majority

InvalidHash

Invalid hash

NoProposal

No external proposal

AlreadyVetoed

Identity may not veto a proposal twice

NotDelegated

Not delegated

DuplicatePreimage

Preimage already noted

NotImminent

Not imminent

TooEarly

Too early

Imminent

Imminent

PreimageMissing

Preimage not found

ReferendumInvalid

Vote given for invalid referendum

PreimageInvalid

Invalid preimage

NoneWaiting

No proposals waiting

NotLocked

The target account does not have a lock.

NotExpired

The lock on the account to be unlocked has not yet expired.

NotVoter

The given account did not vote on the referendum.

NoPermission

The actor has no permission to conduct the action.

AlreadyDelegating

The account is already delegating.

Overflow

An unexpected integer overflow occurred.

Underflow

An unexpected integer underflow occurred.

InsufficientFunds

Too high a balance was provided that the account cannot afford.

NotDelegating

The account is not currently delegating.

VotesExist

The account currently has votes attached to it and the operation cannot succeed until these are removed, either through unvote or reap_vote.

InstantNotAllowed

The instant referendum origin is currently disallowed.

Nonsense

Delegation to oneself makes no sense.

WrongUpperBound

Invalid upper bound.

MaxVotesReached

Maximum number of votes reached.

InvalidWitness

The provided witness data is wrong.

TooManyProposals

Maximum number of proposals reached.

Trait Implementations

impl<T: Config> Debug for Error<T>[src]

impl<T: Config> ModuleErrorMetadata for Error<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Error<T> where
    T: RefUnwindSafe

impl<T> Send for Error<T> where
    T: Send

impl<T> Sync for Error<T> where
    T: Sync

impl<T> Unpin for Error<T> where
    T: Unpin

impl<T> UnwindSafe for Error<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithPostDispatchInfo for T where
    T: Into<DispatchError>, 
[src]