Enum sn_client::TransfersError[][src]

#[non_exhaustive]pub enum TransfersError {
    MissingSender,
    MissingRecipient,
    SameSenderAndRecipient,
    DebitPending,
    SectionKeyNeverExisted,
    DebitProposed,
    CreditDebitIdMismatch,
    CreditDebitValueMismatch,
    WrongValidationActor,
    PendingTransferNotFound,
    NoSetForDebitId(Dot<PublicKey>),
    NoSetForTransferId(Dot<PublicKey>),
    OperationOutOfOrder(u64u64),
    ShouldBeInitialOperation,
    NoActorHistory,
    ZeroValueTransfer,
    ValidatedAlready,
    DebitDoesNotBelong(PublicKeyDebit),
    CreditDoesNotBelong(PublicKeyCredit),
    SubtractionOverflow(TokenToken),
    AdditionOverflow(TokenToken),
    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)

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

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.

NoActorHistory

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 to this wallet

SubtractionOverflow(TokenToken)

Subtracting this transfer would cause an overlow

AdditionOverflow(TokenToken)

Adding this transfer would cause an overflow

ReceiveValidationFailed

Receive validation failed..

TransferCreationFailed

TransferCreationFailed..

SenderValidationFailed

SenderValidationFailed..

RegisterProofFailed

RegisterProofFailed..

InvalidCreditOrDebit

InvalidCreditOrDebit..

CouldNotGetWalletForReplica

CouldNotGetWalletForReplica..

CouldNotFindGroup

CouldNotFindGroup..

ReceivePropagationFailed

ReceivePropagationFailed..

SyncFailed

SyncFailed..

ValidationFailed

ValidationFailed..

GenesisFailed

GetGenesisFailed..

Unknown(String)

Unknown error

WalletNotFound(PublicKey)

Wallet not found

CannotAggregate

Signature shares are insufficient for BLS aggregation

InvalidSignature

Signature is not valid

InvalidOperation

Operation is not valid

InvalidOwner

Owner is not valid

InsufficientBalance

Insufficient coins.

NoSuchSender

Inexistent sender balance.

NoSuchRecipient

Inexistent recipient balance. Currently only thrown during network genesis

KeyExists

Balance key 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]

impl PartialEq<Error> for Error[src]

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> 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<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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,