Enum ethcore::executed::ExecutionError
source · [−]pub enum ExecutionError {
NotEnoughBaseGas {
required: U256,
got: U256,
},
BlockGasLimitReached {
gas_limit: U256,
gas_used: U256,
gas: U256,
},
GasPriceLowerThanBaseFee {
gas_price: U256,
base_fee: U256,
},
InvalidNonce {
expected: U256,
got: U256,
},
NotEnoughCash {
required: U512,
got: U512,
},
MutableCallInStaticContext,
SenderMustExist,
Internal(String),
TransactionMalformed(String),
}
Expand description
Result of executing the transaction.
Variants
NotEnoughBaseGas
Returned when there gas paid for transaction execution is lower than base gas required.
BlockGasLimitReached
Fields
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.
Returned when block (gas_used + gas) > gas_limit.
If gas =< gas_limit, upstream may try to execute the transaction in next block.
GasPriceLowerThanBaseFee
Transaction’s max gas price is lower then block base fee.
InvalidNonce
Returned when transaction nonce does not match state nonce.
NotEnoughCash
Returned when cost of transaction (value + gas_price * gas) exceeds current sender 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
sourceimpl Clone for ExecutionError
impl Clone for ExecutionError
sourcefn clone(&self) -> ExecutionError
fn clone(&self) -> ExecutionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExecutionError
impl Debug for ExecutionError
sourceimpl Display for ExecutionError
impl Display for ExecutionError
sourceimpl Error for ExecutionError
impl Error for ExecutionError
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<Box<TrieError<H256, DecoderError>, Global>> for ExecutionError
impl From<Box<TrieError<H256, DecoderError>, Global>> for ExecutionError
sourceimpl From<ExecutionError> for Error
impl From<ExecutionError> for Error
Error concerning EVM code execution.
sourcefn from(e: ExecutionError) -> Self
fn from(e: ExecutionError) -> Self
Performs the conversion.
sourceimpl From<ExecutionError> for CallError
impl From<ExecutionError> for CallError
sourcefn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Performs the conversion.
sourceimpl From<TrieError<H256, DecoderError>> for ExecutionError
impl From<TrieError<H256, DecoderError>> for ExecutionError
sourceimpl PartialEq<ExecutionError> for ExecutionError
impl PartialEq<ExecutionError> for ExecutionError
sourcefn eq(&self, other: &ExecutionError) -> bool
fn eq(&self, other: &ExecutionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExecutionError) -> bool
fn ne(&self, other: &ExecutionError) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExecutionError
Auto Trait Implementations
impl RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more