Enum wallet_core::error::ErrorCode
source · #[repr(u32)]pub enum ErrorCode {
InvalidInput,
WalletRecovering,
WalletConversion,
WalletVoteOutOfRange,
WalletTransactionBuilding,
SymmetricCipherError,
SymmetricCipherInvalidPassword,
InvalidVoteEncryptionKey,
NotEnoughFunds,
InvalidFragment,
InvalidTransactionValidityDate,
InvalidSpendingCounters,
}
Expand description
a code representing the kind of error that occurred
Variants§
InvalidInput
the input was not valid, it may be because it was a null pointer where it was expected to be already allocated. See the details for more information.
When this kind of error occurs it is likely a developer flow issue rather than a user input issue. See the error details for more details.
WalletRecovering
an error occurred while recovering a wallet
WalletConversion
the operation on the wallet conversion object fail, it may be
an out of bound operation when attempting to access the nth
transaction of the conversion.
WalletVoteOutOfRange
the provided voting choice is out of the allowed range
WalletTransactionBuilding
the wallet failed to build a valid transaction, for example not enough funds available
SymmetricCipherError
error encrypting or decrypting transfer protocol payload
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, it’s either before the current blockchain or after the maximum possible interval
InvalidSpendingCounters
invalid spending counters provided to the set_state function