[][src]Enum sp_blockchain::Error

pub enum Error {
    Consensus(Error),
    Backend(String),
    UnknownBlock(String),
    ApplyExtrinsicFailed(ApplyExtrinsicFailed),
    Execution(Box<dyn Error>),
    Blockchain(Box<Error>),
    InvalidAuthoritiesSet,
    VersionInvalid(String),
    GenesisInvalid,
    JustificationDecode,
    BadJustification(String),
    NotAvailableOnLightClient,
    InvalidCHTProof,
    RemoteFetchCancelled,
    RemoteFetchFailed,
    CallResultDecode(&'static strCodecError),
    RuntimeParamConversion(String),
    ChangesTriesNotSupported,
    ErrorReadingChangesTriesConfig,
    ChangesTrieAccessFailed(String),
    NonSequentialFinalization(String),
    NotInFinalizedChain,
    MissingHashRequiredForCHT,
    InvalidStateRoot,
    IncompletePipeline,
    TransactionPoolNotReady,
    DatabaseError(DatabaseError),
    Msg(String),
}

Substrate Client error

Variants

Consensus(Error)

Consensus Error

Backend(String)

Backend error.

UnknownBlock(String)

Unknown block.

ApplyExtrinsicFailed(ApplyExtrinsicFailed)

The apply_extrinsic is not valid due to the given TransactionValidityError.

Execution(Box<dyn Error>)

Execution error.

Blockchain(Box<Error>)

Blockchain error.

InvalidAuthoritiesSet

Invalid authorities set received from the runtime.

VersionInvalid(String)

Could not get runtime version.

GenesisInvalid

Genesis config is invalid.

JustificationDecode

Error decoding header justification.

BadJustification(String)

Justification for header is correctly encoded, but invalid.

NotAvailableOnLightClient

Not available on light client.

InvalidCHTProof

Invalid remote CHT-based proof.

RemoteFetchCancelled

Remote fetch has been cancelled.

RemoteFetchFailed

Remote fetch has been failed.

CallResultDecode(&'static strCodecError)

Error decoding call result.

RuntimeParamConversion(String)

Error converting a parameter between runtime and node.

ChangesTriesNotSupported

Changes tries are not supported.

ErrorReadingChangesTriesConfig

Error reading changes tries configuration.

ChangesTrieAccessFailed(String)

Key changes query has failed.

NonSequentialFinalization(String)

Last finalized block not parent of current.

NotInFinalizedChain

Safety violation: new best block not descendent of last finalized.

MissingHashRequiredForCHT

Hash that is required for building CHT is missing.

InvalidStateRoot

Invalid calculated state root on block import.

IncompletePipeline

Incomplete block import pipeline.

TransactionPoolNotReady
DatabaseError(DatabaseError)
Msg(String)

A convenience variant for String

Implementations

impl Error[src]

pub fn from_blockchain(e: Box<Error>) -> Self[src]

Chain a blockchain error.

pub fn from_state(e: Box<dyn Error>) -> Self[src]

Chain a state error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl<'a> From<&'a str> for Error[src]

impl From<(&'static str, Error)> for Error[src]

impl From<ApplyExtrinsicFailed> for Error[src]

impl From<Box<Error, Global>> for Error[src]

impl From<Box<dyn Error + 'static, Global>> for Error[src]

impl From<DatabaseError> for Error[src]

impl From<Error> for Error[src]

impl From<String> for Error[src]

Auto Trait Implementations

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> Error for T where
    T: 'static + Send + Debug + Display
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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> MaybeDisplay for T where
    T: Display
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToString for T where
    T: Display + ?Sized
[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<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>,