Enum ethcore::executed::ExecutionError  [−][src]
pub enum ExecutionError {
    NotEnoughBaseGas {
        required: U256,
        got: U256,
    },
    BlockGasLimitReached {
        gas_limit: U256,
        gas_used: U256,
        gas: U256,
    },
    InvalidNonce {
        expected: U256,
        got: U256,
    },
    NotEnoughCash {
        required: U512,
        got: U512,
    },
    MutableCallInStaticContext,
    SenderMustExist,
    Internal(String),
    TransactionMalformed(String),
}Result of executing the transaction.
Variants
NotEnoughBaseGasReturned when there gas paid for transaction execution is lower than base gas required.
Fields of NotEnoughBaseGas
                           required: U256 | Absolute minimum gas required.  | 
got: U256 | Gas provided.  | 
BlockGasLimitReachedReturned when block (gas_used + gas) > gas_limit.
If gas =< gas_limit, upstream may try to execute the transaction in next block.
Fields of BlockGasLimitReached
                           gas_limit: U256 | Gas limit of block for transaction.  | 
gas_used: U256 | Gas used in block prior to transaction.  | 
gas: U256 | Amount of gas in block.  | 
InvalidNonceReturned when transaction nonce does not match state nonce.
Fields of InvalidNonce
                           expected: U256 | Nonce expected.  | 
got: U256 | Nonce found.  | 
NotEnoughCashReturned when cost of transaction (value + gas_price * gas) exceeds current sender balance.
Fields of NotEnoughCash
                           required: U512 | Minimum required balance.  | 
got: U512 | Actual balance.  | 
MutableCallInStaticContextWhen execution tries to modify the state in static context
SenderMustExistReturned when transacting from a non-existing account with dust protection enabled.
Internal(String)Returned when internal evm error occurs.
TransactionMalformed(String)Returned when generic transaction occurs
Trait Implementations
impl From<ExecutionError> for Error
impl From<ExecutionError> for ErrorError concerning EVM code execution.
fn from(e: ExecutionError) -> Self
fn from(e: ExecutionError) -> SelfPerforms the conversion.
impl PartialEq for ExecutionError[src] 
impl PartialEq for ExecutionErrorfn eq(&self, other: &ExecutionError) -> bool[src] 
fn eq(&self, other: &ExecutionError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ExecutionError) -> bool[src] 
fn ne(&self, other: &ExecutionError) -> boolThis method tests for !=.
impl Debug for ExecutionError[src] 
impl Debug for ExecutionErrorfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ExecutionError[src] 
impl Clone for ExecutionErrorfn clone(&self) -> ExecutionError[src] 
fn clone(&self) -> ExecutionErrorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl From<Box<TrieError>> for ExecutionError[src] 
impl From<Box<TrieError>> for ExecutionErrorimpl From<TrieError> for ExecutionError[src] 
impl From<TrieError> for ExecutionErrorimpl Display for ExecutionError[src] 
impl Display for ExecutionErrorfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for ExecutionError[src] 
impl Error for ExecutionErrorfn description(&self) -> &str[src] 
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src] 
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<ExecutionError> for CallError[src] 
impl From<ExecutionError> for CallErrorfn from(error: ExecutionError) -> Self[src] 
fn from(error: ExecutionError) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ExecutionError
impl Send for ExecutionErrorimpl Sync for ExecutionError
impl Sync for ExecutionError