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
NotEnoughBaseGas
Returned 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. |
BlockGasLimitReached
Returned 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. |
InvalidNonce
Returned when transaction nonce does not match state nonce.
Fields of InvalidNonce
expected: U256 | Nonce expected. |
got: U256 | Nonce found. |
NotEnoughCash
Returned when cost of transaction (value + gas_price * gas) exceeds current sender balance.
Fields of NotEnoughCash
required: U512 | Minimum required balance. |
got: U512 | Actual balance. |
MutableCallInStaticContext
When execution tries to modify the state in static context
SenderMustExist
Returned 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 Error
Error concerning EVM code execution.
fn from(e: ExecutionError) -> Self
fn from(e: ExecutionError) -> Self
Performs the conversion.
impl PartialEq for ExecutionError
[src]
impl PartialEq for ExecutionError
fn eq(&self, __arg_0: &ExecutionError) -> bool
[src]
fn eq(&self, __arg_0: &ExecutionError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExecutionError) -> bool
[src]
fn ne(&self, __arg_0: &ExecutionError) -> bool
This method tests for !=
.
impl Debug for ExecutionError
[src]
impl Debug for ExecutionError
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExecutionError
[src]
impl Clone for ExecutionError
fn clone(&self) -> ExecutionError
[src]
fn clone(&self) -> ExecutionError
Returns 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 ExecutionError
impl Display for ExecutionError
[src]
impl Display for ExecutionError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ExecutionError
[src]
impl Error for ExecutionError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
A short description of the error. 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 CallError
fn from(error: ExecutionError) -> Self
[src]
fn from(error: ExecutionError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Sync for ExecutionError