Enum sn_client::TransfersError [−][src]
#[non_exhaustive] pub enum TransfersError {}Show variants
MissingSender, MissingRecipient, SameSenderAndRecipient, DebitPending, SectionKeyNeverExisted, DebitProposed, CreditDebitIdMismatch, CreditDebitValueMismatch, WrongValidationActor, PendingTransferNotFound, NoSetForDebitId(Dot<PublicKey>), NoSetForTransferId(Dot<PublicKey>), OperationOutOfOrder(u64, u64), ShouldBeInitialOperation, NoActorHistory, ZeroValueTransfer, ValidatedAlready, DebitDoesNotBelong(PublicKey, Debit), CreditDoesNotBelong(PublicKey, Credit), SubtractionOverflow(Token, Token), AdditionOverflow(Token, Token), ReceiveValidationFailed, TransferCreationFailed, SenderValidationFailed, RegisterProofFailed, InvalidCreditOrDebit, CouldNotGetWalletForReplica, CouldNotFindGroup, ReceivePropagationFailed, SyncFailed, ValidationFailed, GenesisFailed, Unknown(String), WalletNotFound(PublicKey), CannotAggregate, InvalidSignature, InvalidOperation, InvalidOwner, InsufficientBalance, NoSuchSender, NoSuchRecipient, KeyExists, NetworkDataError(Error), Serialisation(String),
SafeNetwork Transfers error type
Variants (Non-exhaustive)
Missing sender actor
Missing recipient
Sender and receiver are the same
A debit is awaiting completion. A new debit cannot be started.
The provided PublicKey does not correlate with any key in the section chain history.
The proposed debit has already been seen, or is not the next expected debit
Credit Id and debit Id do not match
Credit and debits do not have the same value
This is not the correct actor to validate
No pending transfer could be found awaiting accumulation
Validation is not for this actor
Transer is not for this actor
Proposed operation is not the next in sequence. The debit op should be current actor count + 1
This account has not seen any debits yet. Sent debit should be 0 but was not.
No credits or debits were found to sync
0-value transfers are invalid
The validation has already been received
Debit is not from this wallet
Credit is not to this wallet
Subtracting this transfer would cause an overlow
Adding this transfer would cause an overflow
Receive validation failed..
TransferCreationFailed..
SenderValidationFailed..
RegisterProofFailed..
InvalidCreditOrDebit..
CouldNotGetWalletForReplica..
CouldNotFindGroup..
ReceivePropagationFailed..
SyncFailed..
ValidationFailed..
GetGenesisFailed..
Unknown(String)
Unknown error
WalletNotFound(PublicKey)
Wallet not found
Signature shares are insufficient for BLS aggregation
Signature is not valid
Operation is not valid
Owner is not valid
Insufficient coins.
Inexistent sender balance.
Inexistent recipient balance. Currently only thrown during network genesis
Balance key already exists.
NetworkDataError(Error)
Other sn_data_types errors
Serialisation(String)
Serialisation
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[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 StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
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> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,