#[non_exhaustive]pub enum WalletError {
FileMissing(String),
Io {
path: String,
source: Error,
},
Pem(String),
NoCertificates,
Sso(String),
SsoNotEnabled,
Pkcs12(String),
KeyDecrypt(String),
PasswordRequired {
format: &'static str,
},
UnsupportedFormat {
format: &'static str,
},
}Expand description
Errors raised while resolving or reading a wallet.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FileMissing(String)
The wallet directory did not contain the expected file.
Io
An I/O error occurred reading the wallet.
Pem(String)
The PEM content could not be parsed.
NoCertificates
The wallet contained no usable trust-anchor certificates.
Sso(String)
SSO (cwallet.sso) outer-container parsing failure.
SsoNotEnabled
Historical: SSO support compiled out. No longer returned as of 0.7.x
(the cwallet.sso reader is always available); the variant is kept so
existing match arms keep compiling.
Pkcs12(String)
PKCS#12 (ewallet.p12, or the PKCS#12 embedded in cwallet.sso)
parsing or decryption failure. The message names OIDs/structures only —
never paths or passwords.
KeyDecrypt(String)
An encrypted private key could not be decrypted (wrong wallet password, or an unsupported encryption scheme — only PKCS#8 PBES2 with PBKDF2-HMAC-SHA1/SHA256 + AES-CBC is supported).
PasswordRequired
The wallet (or its private key) is encrypted and requires a wallet
password, but none was supplied. Machine-classifiable remediation:
supply wallet_password, or use an auto-login cwallet.sso /
unencrypted ewallet.pem wallet.
UnsupportedFormat
A recognized wallet file is present but this thin build does not support the format.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()