pub enum WalletError {
Show 21 variants
WalletNotFound(String),
InvalidWalletId(String),
WalletAlreadyExists(String),
InsufficientBalance {
have: u128,
need: u128,
},
AssetNotSupported(String),
InvalidKeyShare(String),
ThresholdNotMet {
got: usize,
need: usize,
},
SignatureFailed(String),
KeystoreError(String),
EncryptionError(String),
DecryptionError(String),
InvalidPassword,
ProvisioningFailed(String),
TransactionValidationFailed(String),
SignatureVerificationFailed(String),
ContactNotFound(String),
StateSyncError(String),
SerializationError(String),
CryptoError(CryptoError),
IoError(Error),
Other(String),
}Expand description
Wallet-specific errors for Tenzro Network.
Variants§
WalletNotFound(String)
Wallet not found
InvalidWalletId(String)
Invalid wallet ID
WalletAlreadyExists(String)
Wallet already exists
InsufficientBalance
Insufficient balance
AssetNotSupported(String)
Asset not supported
Invalid key share
ThresholdNotMet
Threshold not met
SignatureFailed(String)
Signature generation failed
KeystoreError(String)
Keystore error
EncryptionError(String)
Encryption error
DecryptionError(String)
Decryption error
InvalidPassword
Invalid password
ProvisioningFailed(String)
Provisioning failed
TransactionValidationFailed(String)
Transaction validation failed
SignatureVerificationFailed(String)
Signature verification failed
ContactNotFound(String)
Contact not found
StateSyncError(String)
State sync error
SerializationError(String)
Serialization error
CryptoError(CryptoError)
Cryptographic error
IoError(Error)
IO error
Other(String)
Generic error
Trait Implementations§
Source§impl Debug for WalletError
impl Debug for WalletError
Source§impl Display for WalletError
impl Display for WalletError
Source§impl Error for WalletError
impl Error for WalletError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CryptoError> for WalletError
impl From<CryptoError> for WalletError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WalletError
impl !UnwindSafe for WalletError
impl Freeze for WalletError
impl Send for WalletError
impl Sync for WalletError
impl Unpin for WalletError
impl UnsafeUnpin for WalletError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.