Enum evm_rpc::error::Error[][src]

pub enum Error {
    HexError {
        input_data: String,
        source: FromHexError,
    },
    InvalidHexPrefix {
        input_data: String,
    },
    RlpError {
        struct_name: String,
        input_data: String,
        source: DecoderError,
    },
    IntError {
        input_data: String,
        source: ParseIntError,
    },
    BigIntError {
        input_data: String,
        source: FromHexError,
    },
    BigIntTrimFailed {
        input_data: String,
        error: String,
    },
    BlockNotFound {
        block: BlockNum,
    },
    StateNotFoundForBlock {
        block: String,
    },
    ProxyRpcError {
        source: JRpcError,
    },
    NativeRpcError {
        details: String,
        source: Error,
        verbose: bool,
    },
    EvmStateError {
        source: Error,
    },
    Unimplemented {},
    WrongChainId {
        chain_id: u64,
        tx_chain_id: Option<u64>,
    },
    KeyNotFound {
        account: H160,
    },
    CallError {
        data: Bytes,
        error: ExitError,
    },
    CallRevert {
        data: Bytes,
        error: ExitRevert,
    },
    CallFatal {
        error: ExitFatal,
    },
}

Variants

HexError

Fields of HexError

input_data: Stringsource: FromHexError
InvalidHexPrefix

Fields of InvalidHexPrefix

input_data: String
RlpError

Fields of RlpError

struct_name: Stringinput_data: Stringsource: DecoderError
IntError

Fields of IntError

input_data: Stringsource: ParseIntError
BigIntError

Fields of BigIntError

input_data: Stringsource: FromHexError
BigIntTrimFailed

Fields of BigIntTrimFailed

input_data: Stringerror: String
BlockNotFound

Fields of BlockNotFound

block: BlockNum
StateNotFoundForBlock

Fields of StateNotFoundForBlock

block: String
ProxyRpcError

Fields of ProxyRpcError

source: JRpcError
NativeRpcError

Fields of NativeRpcError

details: Stringsource: Errorverbose: bool
EvmStateError

Fields of EvmStateError

source: Error
Unimplemented

Fields of Unimplemented

WrongChainId

Fields of WrongChainId

chain_id: u64tx_chain_id: Option<u64>
KeyNotFound

Fields of KeyNotFound

account: H160
CallError

Fields of CallError

data: Byteserror: ExitError
CallRevert

Fields of CallRevert

data: Byteserror: ExitRevert
CallFatal

Fields of CallFatal

error: ExitFatal

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

impl From<Error> for JRpcError[src]

impl<__T0> IntoError<Error> for HexError<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = FromHexError

The underlying error

impl<__T0> IntoError<Error> for InvalidHexPrefix<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = NoneError

The underlying error

impl IntoError<Error> for EvmStateError where
    Error: Error + ErrorCompat
[src]

type Source = Error

The underlying error

impl IntoError<Error> for Unimplemented where
    Error: Error + ErrorCompat
[src]

type Source = NoneError

The underlying error

impl<__T0, __T1> IntoError<Error> for WrongChainId<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<u64>,
    __T1: Into<Option<u64>>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<Error> for KeyNotFound<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<H160>, 
[src]

type Source = NoneError

The underlying error

impl<__T0, __T1> IntoError<Error> for CallError<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<Bytes>,
    __T1: Into<ExitError>, 
[src]

type Source = NoneError

The underlying error

impl<__T0, __T1> IntoError<Error> for CallRevert<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<Bytes>,
    __T1: Into<ExitRevert>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<Error> for CallFatal<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<ExitFatal>, 
[src]

type Source = NoneError

The underlying error

impl<__T0, __T1> IntoError<Error> for RlpError<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<String>,
    __T1: Into<String>, 
[src]

type Source = DecoderError

The underlying error

impl<__T0> IntoError<Error> for IntError<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = ParseIntError

The underlying error

impl<__T0> IntoError<Error> for BigIntError<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = FromHexError

The underlying error

impl<__T0, __T1> IntoError<Error> for BigIntTrimFailed<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<String>,
    __T1: Into<String>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<Error> for BlockNotFound<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<BlockNum>, 
[src]

type Source = NoneError

The underlying error

impl<__T0> IntoError<Error> for StateNotFoundForBlock<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<String>, 
[src]

type Source = NoneError

The underlying error

impl IntoError<Error> for ProxyRpcError where
    Error: Error + ErrorCompat
[src]

type Source = JRpcError

The underlying error

impl<__T0, __T1> IntoError<Error> for NativeRpcError<__T0, __T1> where
    Error: Error + ErrorCompat,
    __T0: Into<String>,
    __T1: Into<bool>, 
[src]

type Source = Error

The underlying error

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

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

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> AsFail for T where
    T: Fail
[src]

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

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

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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> Typeable for T where
    T: Any

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