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
AlreadyImportedTransaction is already imported to the queue
OldTransaction is not valid anymore (state already has higher nonce)
TooCheapToReplaceTransaction has too low fee (there is already a transaction with the same sender-nonce but higher gas price)
LimitReachedTransaction was not imported to the queue because limit has been reached.
InsufficientGasPriceTransaction's gas price is below threshold.
Fields of InsufficientGasPrice
minimal: U256 | Minimal expected gas price |
got: U256 | Transaction gas price |
InsufficientGasTransaction's gas is below currently set minimal gas requirement.
Fields of InsufficientGas
minimal: U256 | Minimal expected gas |
got: U256 | Transaction gas |
InsufficientBalanceSender doesn't have enough funds to pay for this transaction
Fields of InsufficientBalance
balance: U256 | Senders balance |
cost: U256 | Transaction cost |
GasLimitExceededTransactions 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.
SenderBannedTransaction sender is banned.
RecipientBannedTransaction receipient is banned.
CodeBannedContract creation code is banned.
InvalidChainIdInvalid chain ID given.
NotAllowedNot enough permissions given by permission contract.
InvalidSignature(String)Signature error
TooBigTransaction too big
InvalidRlp(String)Invalid RLP encoding
Trait Implementations
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Error[src]
impl PartialEq for Errorfn eq(&self, other: &Error) -> bool[src]
fn eq(&self, other: &Error) -> boolThis 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) -> boolThis method tests for !=.
impl Clone for Error[src]
impl Clone for Errorfn clone(&self) -> Error[src]
fn clone(&self) -> ErrorReturns 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 Errorimpl From<DecoderError> for Error[src]
impl From<DecoderError> for Errorfn from(err: DecoderError) -> Self[src]
fn from(err: DecoderError) -> SelfPerforms the conversion.
impl Display for Error[src]
impl Display for Errorfn 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 Error[src]
impl Error for Error