Enum primitives::transaction::TransactionError
source · pub enum TransactionError {
Show 19 variants
AlreadyImported,
ChainIdMismatch {
expected: u32,
got: u32,
space: Space,
},
EpochHeightOutOfBound {
block_height: u64,
set: u64,
transaction_epoch_bound: u64,
},
NotEnoughBaseGas {
required: U256,
got: U256,
},
Stale,
TooCheapToReplace,
LimitReached,
InsufficientGasPrice {
minimal: U256,
got: U256,
},
InsufficientGas {
minimal: U256,
got: U256,
},
InsufficientBalance {
balance: U256,
cost: U256,
},
GasLimitExceeded {
limit: U256,
got: U256,
},
InvalidGasLimit(OutOfBounds<U256>),
InvalidSignature(String),
TooBig,
InvalidRlp(String),
ZeroGasPrice,
FutureTransactionType,
InvalidReceiver,
TooLargeNonce,
}
Expand description
Errors concerning transaction processing.
Variants§
AlreadyImported
Transaction is already imported to the queue
ChainIdMismatch
Chain id in the transaction doesn’t match the chain id of the network.
EpochHeightOutOfBound
Epoch height out of bound.
NotEnoughBaseGas
The gas paid for transaction is lower than base gas.
Stale
Transaction is not valid anymore (state already has higher nonce)
TooCheapToReplace
Transaction has too low fee (there is already a transaction with the same sender-nonce but higher gas price)
LimitReached
Transaction was not imported to the queue because limit has been reached.
InsufficientGasPrice
Transaction’s gas price is below threshold.
InsufficientGas
Transaction’s gas is below currently set minimal gas requirement.
InsufficientBalance
Sender doesn’t have enough funds to pay for this transaction
GasLimitExceeded
Transactions gas is higher then current gas limit
InvalidGasLimit(OutOfBounds<U256>)
Transaction’s gas limit (aka gas) is invalid.
InvalidSignature(String)
Signature error
TooBig
Transaction too big
InvalidRlp(String)
Invalid RLP encoding
ZeroGasPrice
FutureTransactionType
Transaction types have not been activated
InvalidReceiver
Receiver with invalid type bit.
TooLargeNonce
Transaction nonce exceeds local limit.
Trait Implementations§
source§impl Clone for TransactionError
impl Clone for TransactionError
source§fn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionError
impl Debug for TransactionError
source§impl Display for TransactionError
impl Display for TransactionError
source§impl Error for TransactionError
impl Error for TransactionError
source§fn description(&self) -> &str
fn description(&self) -> &str
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
source§impl From<DecoderError> for TransactionError
impl From<DecoderError> for TransactionError
source§impl From<Error> for TransactionError
impl From<Error> for TransactionError
source§impl PartialEq for TransactionError
impl PartialEq for TransactionError
source§fn eq(&self, other: &TransactionError) -> bool
fn eq(&self, other: &TransactionError) -> bool
self
and other
values to be equal, and is used
by ==
.