[][src]Enum sn_client::TransfersError

#[non_exhaustive]pub enum TransfersError {
    MissingSender,
    MissingRecipient,
    MissingReplicaGroup,
    SameSenderAndRecipient,
    DebitPending,
    SectionKeyNeverExisted,
    DebitProposed,
    CreditDebitIdMismatch,
    CreditDebitValueMismatch,
    WrongValidationActor,
    PendingTransferNotFound,
    NoSetForDebitId(Dot<PublicKey>),
    NoSetForTransferId(Dot<PublicKey>),
    OperationOutOfOrder(u64u64),
    ShouldBeInitialOperation,
    NothingToSync,
    ZeroValueTransfer,
    ValidatedAlready,
    DebitDoesNotBelong(PublicKeyDebit),
    CreditDoesNotBelong(PublicKeyCredit),
    SubtractionOverflow(MoneyMoney),
    AdditionOverflow(MoneyMoney),
    UnexpectedOutcome,
    WalletNotFound(Debit),
    CannotAggregate,
    InvalidSignature,
    InvalidOperation,
    InsufficientBalance,
    NoSuchSender,
    NoSuchRecipient,
    KeyExists,
    NetworkDataError(Error),
    Serialisation(String),
}

SafeNetwork Transfers error type

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingSender

Missing sender actor

MissingRecipient

Missing recipient

MissingReplicaGroup

Missing Replica Group

SameSenderAndRecipient

Sender and receiver are the same

DebitPending

A debit is awaiting completion. A new debit cannot be started.

SectionKeyNeverExisted

The provided PublicKey does not correlate with any key in the section chain history.

DebitProposed

The proposed debit has already been seen, or is not the next expected debit

CreditDebitIdMismatch

Credit Id and debit Id do not match

CreditDebitValueMismatch

Credit and debits do not have the same value

WrongValidationActor

This is not the correct actor to validate

PendingTransferNotFound

No pending transfer could be found awaiting accumulation

NoSetForDebitId(Dot<PublicKey>)

Validation is not for this actor

NoSetForTransferId(Dot<PublicKey>)

Transer is not for this actor

OperationOutOfOrder(u64u64)

Proposed operation is not the next in sequence. The debit op should be current actor count + 1

ShouldBeInitialOperation

This account has not seen any debits yet. Sent debit should be 0 but was not.

NothingToSync

No credits or debits were found to sync

ZeroValueTransfer

0-value transfers are invalid

ValidatedAlready

The validation has already been received

DebitDoesNotBelong(PublicKeyDebit)

Debit is not from this wallet

CreditDoesNotBelong(PublicKeyCredit)

Credit is not from this wallet

SubtractionOverflow(MoneyMoney)

Subtracting this transfer would cause an overlow

AdditionOverflow(MoneyMoney)

Adding this transfer would cause an overflow

UnexpectedOutcome

Unexpected outcome

WalletNotFound(Debit)

Wallet not found

CannotAggregate

Signature shares are insufficient for BLS aggregation

InvalidSignature

Signature is not valid

InvalidOperation

Operation is not valid

InsufficientBalance

Insufficient coins.

NoSuchSender

Inexistent sender balance.

NoSuchRecipient

Inexistent recipient balance. Currently only thrown during network genesis

KeyExists

Coin balance already exists.

NetworkDataError(Error)

Other sn_data_types errors

Serialisation(String)

Serialisation

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,