Enum wallet_core::error::ErrorKind
source · pub enum ErrorKind {
InvalidInput {
argument_name: &'static str,
},
WalletRecovering,
WalletConversion,
WalletVoteOutOfRange,
WalletTransactionBuilding,
SymmetricCipherError,
SymmetricCipherInvalidPassword,
InvalidVoteEncryptionKey,
NotEnoughFunds,
InvalidFragment,
InvalidTransactionValidityDate,
InvalidSpendingCounters,
}
Variants§
InvalidInput
kind of error where the input (named argument_name
) is of
invalid format or of unexpected value (null pointer).
The details
should provide more info on what caused the error.
WalletRecovering
an error occurred while recovering a wallet
WalletConversion
This is the kind of error that may happen when operating the transactions of the wallet conversion. For example, there may be an out of bound error
WalletVoteOutOfRange
the provided voting choice is out of the allowed range
WalletTransactionBuilding
the wallet failed to build a valid transaction
SymmetricCipherError
format error (malformed input, etc…)
SymmetricCipherInvalidPassword
authentication failed
InvalidVoteEncryptionKey
vote encryption key is invalid either because is not valid bech32, or because of the underlying bytes
NotEnoughFunds
wallet out of funds
InvalidFragment
invalid fragment
InvalidTransactionValidityDate
invalid transaction validity date
InvalidSpendingCounters
invalid spending counters provided to the set_state function
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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