Enum near_primitives::errors::InvalidTxError
source · [−]pub enum InvalidTxError {
Show 14 variants
InvalidAccessKeyError(InvalidAccessKeyError),
InvalidSignerId {
signer_id: String,
},
SignerDoesNotExist {
signer_id: AccountId,
},
InvalidNonce {
tx_nonce: Nonce,
ak_nonce: Nonce,
},
NonceTooLarge {
tx_nonce: Nonce,
upper_bound: Nonce,
},
InvalidReceiverId {
receiver_id: String,
},
InvalidSignature,
NotEnoughBalance {
signer_id: AccountId,
balance: Balance,
cost: Balance,
},
LackBalanceForState {
signer_id: AccountId,
amount: Balance,
},
CostOverflow,
InvalidChain,
Expired,
ActionsValidation(ActionsValidationError),
TransactionSizeExceeded {
size: u64,
limit: u64,
},
}Expand description
An error happened during TX execution
Variants
InvalidAccessKeyError(InvalidAccessKeyError)
Happens if a wrong AccessKey used or AccessKey has not enough permissions
InvalidSignerId
Fields
signer_id: StringTX signer_id is not a valid AccountId
SignerDoesNotExist
Fields
signer_id: AccountIdTX signer_id is not found in a storage
InvalidNonce
Transaction nonce must be account[access_key].nonce + 1.
NonceTooLarge
Transaction nonce is larger than the upper bound given by the block height
InvalidReceiverId
Fields
receiver_id: StringTX receiver_id is not a valid AccountId
InvalidSignature
TX signature is not valid
NotEnoughBalance
Account does not have enough balance to cover TX cost
LackBalanceForState
Fields
signer_id: AccountIdAn account which doesn’t have enough balance to cover storage.
amount: BalanceRequired balance to cover the state.
Signer account doesn’t have enough balance after transaction.
CostOverflow
An integer overflow occurred during transaction cost estimation.
InvalidChain
Transaction parent block hash doesn’t belong to the current chain
Expired
Transaction has expired
ActionsValidation(ActionsValidationError)
An error occurred while validating actions of a Transaction.
TransactionSizeExceeded
The size of serialized transaction exceeded the limit.
Trait Implementations
sourceimpl BorshDeserialize for InvalidTxError where
InvalidAccessKeyError: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for InvalidTxError where
InvalidAccessKeyError: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
Nonce: BorshDeserialize,
String: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
Balance: BorshDeserialize,
AccountId: BorshDeserialize,
Balance: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for InvalidTxError where
InvalidAccessKeyError: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
Balance: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
ActionsValidationError: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for InvalidTxError where
InvalidAccessKeyError: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
Nonce: BorshSerialize,
String: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
Balance: BorshSerialize,
AccountId: BorshSerialize,
Balance: BorshSerialize,
ActionsValidationError: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Clone for InvalidTxError
impl Clone for InvalidTxError
sourcefn clone(&self) -> InvalidTxError
fn clone(&self) -> InvalidTxError
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 InvalidTxError
impl Debug for InvalidTxError
sourceimpl<'de> Deserialize<'de> for InvalidTxError
impl<'de> Deserialize<'de> for InvalidTxError
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for InvalidTxError
impl Display for InvalidTxError
sourceimpl Error for InvalidTxError
impl Error for InvalidTxError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<IntegerOverflowError> for InvalidTxError
impl From<IntegerOverflowError> for InvalidTxError
sourcefn from(_: IntegerOverflowError) -> Self
fn from(_: IntegerOverflowError) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidAccessKeyError> for InvalidTxError
impl From<InvalidAccessKeyError> for InvalidTxError
sourcefn from(error: InvalidAccessKeyError) -> Self
fn from(error: InvalidAccessKeyError) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidTxError> for TxExecutionError
impl From<InvalidTxError> for TxExecutionError
sourcefn from(error: InvalidTxError) -> Self
fn from(error: InvalidTxError) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidTxError> for RuntimeError
impl From<InvalidTxError> for RuntimeError
sourcefn from(e: InvalidTxError) -> Self
fn from(e: InvalidTxError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<InvalidTxError> for InvalidTxError
impl PartialEq<InvalidTxError> for InvalidTxError
sourcefn eq(&self, other: &InvalidTxError) -> bool
fn eq(&self, other: &InvalidTxError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InvalidTxError) -> bool
fn ne(&self, other: &InvalidTxError) -> bool
This method tests for !=.
sourceimpl Serialize for InvalidTxError
impl Serialize for InvalidTxError
impl Eq for InvalidTxError
impl StructuralEq for InvalidTxError
impl StructuralPartialEq for InvalidTxError
Auto Trait Implementations
impl RefUnwindSafe for InvalidTxError
impl Send for InvalidTxError
impl Sync for InvalidTxError
impl Unpin for InvalidTxError
impl UnwindSafe for InvalidTxError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more