Enum ethcore_transaction::Error [−][src]
pub enum Error { AlreadyImported, Old, 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>), SenderBanned, RecipientBanned, CodeBanned, InvalidChainId, NotAllowed, InvalidSignature(String), TooBig, InvalidRlp(String), }
Errors concerning transaction processing.
Variants
AlreadyImported
Transaction is already imported to the queue
Old
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.
Fields of InsufficientGasPrice
minimal: U256 | Minimal expected gas price |
got: U256 | Transaction gas price |
InsufficientGas
Transaction's gas is below currently set minimal gas requirement.
Fields of InsufficientGas
minimal: U256 | Minimal expected gas |
got: U256 | Transaction gas |
InsufficientBalance
Sender doesn't have enough funds to pay for this transaction
Fields of InsufficientBalance
balance: U256 | Senders balance |
cost: U256 | Transaction cost |
GasLimitExceeded
Transactions gas is higher then current gas limit
Fields of GasLimitExceeded
limit: U256 | Current gas limit |
got: U256 | Declared transaction gas |
InvalidGasLimit(OutOfBounds<U256>)
Transaction's gas limit (aka gas) is invalid.
SenderBanned
Transaction sender is banned.
RecipientBanned
Transaction receipient is banned.
CodeBanned
Contract creation code is banned.
InvalidChainId
Invalid chain ID given.
NotAllowed
Not enough permissions given by permission contract.
InvalidSignature(String)
Signature error
TooBig
Transaction too big
InvalidRlp(String)
Invalid RLP encoding
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
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 PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Clone for Error
[src]
impl Clone for Error
fn clone(&self) -> Error
[src]
fn clone(&self) -> Error
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<Error> for Error
[src]
impl From<Error> for Error
impl From<DecoderError> for Error
[src]
impl From<DecoderError> for Error
fn from(err: DecoderError) -> Self
[src]
fn from(err: DecoderError) -> Self
Performs the conversion.
impl Display for Error
[src]
impl Display for Error
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 Error
[src]
impl Error for Error