Enum safe_network::transfers::Error [−][src]
#[non_exhaustive] pub enum Error {}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(DtError), Serialisation(String),
Expand description
SafeNetwork Transfers error type
Variants (Non-exhaustive)
This enum is marked as 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(DtError)
Other types errors
Serialisation(String)
Serialisation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V