[][src]Enum substrate_client::error::Error

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

Substrate Client error

Variants

Consensus(Error)

Consensus Error

Backend(String)

Backend error.

UnknownBlock(String)

Unknown block.

ApplyExtrinsicFailed(ApplyError)

Applying extrinsic error.

Execution(Box<dyn Error>)

Execution error.

Blockchain(Box<Error>)

Blockchain error.

InvalidAuthoritiesSet

Invalid authorities set received from the runtime.

VersionInvalid

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 strError)

Error decoding call result.

RuntimeParamConversion(String)

Error converting a parameter between runtime and node.

ChangesTriesNotSupported

Changes tries are not supported.

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.

Msg(String)

A convenience variant for String

Methods

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 From<Error> for Error[src]

impl From<ApplyError> for Error[src]

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

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

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

impl From<String> for Error[src]

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

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl Send for Error

impl Unpin for Error

impl !Sync for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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

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

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<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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

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

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Error for T where
    T: 'static + Send + Debug + Display
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

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

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

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

impl<T> SaturatedConversion for T[src]

impl<T> CheckedConversion for T[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDisplay for T where
    T: Display
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> Erased for T[src]