[][src]Enum exonum_configuration::ErrorCode

#[repr(u8)]
pub enum ErrorCode {
    AlreadyScheduled,
    UnknownSender,
    InvalidConfigRef,
    ActivationInPast,
    AlreadyProposed,
    InvalidConfig,
    InvalidMajorityCount,
    UnknownConfigRef,
    AlreadyVoted,
}

Error codes emitted by Propose and/or Vote transactions during execution.

Variants

AlreadyScheduled

Next configuration is already scheduled.

Can be emitted by Propose or Vote.

UnknownSender

The sender of the transaction is not among the active validators.

Can be emitted by Propose or Vote.

InvalidConfigRef

The configuration in the proposal does not reference the currently active configuration.

Can be emitted by Propose or Vote.

ActivationInPast

Current blockchain height exceeds the height of the proposal activation.

Can be emitted by Propose or Vote.

AlreadyProposed

The same configuration is already proposed.

Specific for Propose.

InvalidConfig

The configuration in the transaction cannot be parsed.

Specific for Propose.

InvalidMajorityCount

The configuration has invalid majority_count.

Specific for Propose.

UnknownConfigRef

The transaction references an unknown configuration.

Specific for Vote.

AlreadyVoted

The validator who authored the transaction has already voted for the same proposal.

Specific for Vote.

Trait Implementations

impl Debug for ErrorCode[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T