Enum solana_sdk::transaction::TransactionError [−][src]
pub enum TransactionError {}Show variants
AccountInUse, AccountLoadedTwice, AccountNotFound, ProgramAccountNotFound, InsufficientFundsForFee, InvalidAccountForFee, AlreadyProcessed, BlockhashNotFound, InstructionError(u8, InstructionError), CallChainTooDeep, MissingSignatureForFee, InvalidAccountIndex, SignatureFailure, InvalidProgramForExecution, SanitizeFailure, ClusterMaintenance, AccountBorrowOutstanding,
Expand description
Reasons a transaction might be rejected.
Variants
Expand description
An account is already being processed in another transaction in a way that does not support parallelism
Expand description
A Pubkey
appears twice in the transaction’s account_keys
. Instructions can reference
Pubkey
s more than once but the message must contain a list with no duplicate keys
Expand description
Attempt to debit an account but found no record of a prior credit.
Expand description
Attempt to load a program that does not exist
Expand description
The from Pubkey
does not have sufficient balance to pay the fee to schedule the transaction
Expand description
This account may not be used to pay transaction fees
Expand description
The bank has seen this transaction before. This can occur under normal operation
when a UDP packet is duplicated, as a user error from a client not updating
its recent_blockhash
, or as a double-spend attack.
Expand description
The bank has not seen the given recent_blockhash
or the transaction is too old and
the recent_blockhash
has been discarded.
InstructionError(u8, InstructionError)
Expand description
An error occurred while processing an instruction. The first element of the tuple indicates the instruction index in which the error occurred.
Expand description
Loader call chain is too deep
Expand description
Transaction requires a fee but has no signature present
Expand description
Transaction contains an invalid account reference
Expand description
Transaction did not pass signature verification
Expand description
This program may not be used for executing instructions
Expand description
Transaction failed to sanitize accounts offsets correctly implies that account locks are not taken for this TX, and should not be unlocked.
Expand description
Transaction processing left an account with an outstanding borrowed reference
Trait Implementations
impl AbiEnumVisitor for TransactionError
[src]
impl AbiEnumVisitor for TransactionError
[src]fn visit_for_abi(&self, digester: &mut AbiDigester) -> DigestResult
[src]
impl AbiExample for TransactionError
[src]
impl AbiExample for TransactionError
[src]impl Clone for TransactionError
[src]
impl Clone for TransactionError
[src]fn clone(&self) -> TransactionError
[src]
fn clone(&self) -> TransactionError
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TransactionError
[src]
impl Debug for TransactionError
[src]impl<'de> Deserialize<'de> for TransactionError
[src]
impl<'de> Deserialize<'de> for TransactionError
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for TransactionError
[src]
impl Display for TransactionError
[src]impl Error for TransactionError
[src]
impl Error for TransactionError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<SanitizeError> for TransactionError
[src]
impl From<SanitizeError> for TransactionError
[src]fn from(_: SanitizeError) -> Self
[src]
fn from(_: SanitizeError) -> Self
[src]Performs the conversion.
impl From<TransactionError> for SignerError
[src]
impl From<TransactionError> for SignerError
[src]fn from(source: TransactionError) -> Self
[src]
fn from(source: TransactionError) -> Self
[src]Performs the conversion.
impl From<TransactionError> for TransportError
[src]
impl From<TransactionError> for TransportError
[src]fn from(source: TransactionError) -> Self
[src]
fn from(source: TransactionError) -> Self
[src]Performs the conversion.
impl PartialEq<TransactionError> for TransactionError
[src]
impl PartialEq<TransactionError> for TransactionError
[src]fn eq(&self, other: &TransactionError) -> bool
[src]
fn eq(&self, other: &TransactionError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TransactionError) -> bool
[src]
fn ne(&self, other: &TransactionError) -> bool
[src]This method tests for !=
.
impl Serialize for TransactionError
[src]
impl Serialize for TransactionError
[src]impl Eq for TransactionError
[src]
impl StructuralEq for TransactionError
[src]
impl StructuralPartialEq for TransactionError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnwindSafe for TransactionError
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
[src]pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
[src]pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
[src]
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,