pub enum TransactionError {
AccountLocked {
client_id: ClientId,
},
InsufficientFunds {
cause_id: TransactionId,
},
TransactionDoesNotExist {
ref_id: TransactionId,
},
DuplicateTransaction {
cause_id: TransactionId,
},
TransactionAlreadyDisputed {
ref_id: TransactionId,
},
TransactionNotDisputed {
ref_id: TransactionId,
},
CrossClientTransaction,
}
Expand description
Represents possible errors during transaction processing.
Variants§
AccountLocked
Current account is locked.
InsufficientFunds
Tried to apply Withdrawl with amount greater than available balance.
Fields
§
cause_id: TransactionId
TransactionDoesNotExist
Dispute, Resolve or Chargeback transaction refers to a non-existent transaction.
Fields
§
ref_id: TransactionId
DuplicateTransaction
Tried to apply a transaction with id that was already prcoessed.
Fields
§
cause_id: TransactionId
TransactionAlreadyDisputed
Tried to Dispute the same transaction twice.
Fields
§
ref_id: TransactionId
TransactionNotDisputed
Tried to Resolve or Chargeback a non-disputed transaction.
Fields
§
ref_id: TransactionId
CrossClientTransaction
Tried to apply a transaction to a different client.
Trait Implementations§
Source§impl Clone for TransactionError
impl Clone for TransactionError
Source§fn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionError
impl Debug for TransactionError
Source§impl Hash for TransactionError
impl Hash for TransactionError
Source§impl PartialEq for TransactionError
impl PartialEq for TransactionError
impl Copy for TransactionError
impl Eq for TransactionError
impl StructuralPartialEq for TransactionError
Auto Trait Implementations§
impl Freeze for TransactionError
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnwindSafe for TransactionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more