ReferenceRust referencesigil-wallet
sigil-wallet · error
Source declarations, signatures and documentation for error.
Source: sigil/node/sigil-wallet/src/error.rs. SHA-256: 0d5d81a9dffdc68dd30a958de0a77108955ddda30fc3ad55493bca6db0cf6c8f.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
error::WalletError
Error types for the Sigil wallet. All errors produced by the wallet CLI.
#[derive(Debug, thiserror::Error)]
pub enum WalletError {
/// Failed to read or write keystore files.
#[error("keystore error: {0}")]
Keystore(String),
/// Cryptographic operation failed (encryption, decryption, signing).
#[error("crypto error: {0}")]
Crypto(String),
/// RPC communication error with the Sigil node.
#[error("rpc error: {0}")]
Rpc(String),
/// Configuration file error (read, write, parse).
#[error("config error: {0}")]
Config(String),
/// Identity management error.
#[error("identity error: {0}")]
Identity(String),
/// Transaction building or signing error.
#[error("transaction error: {0}")]
Transaction(String),
/// IO error.
#[error("io error: {0}")]
Io(#[from] std::io::Error),
/// JSON serialization / deserialization error.
#[error("json error: {0}")]
Json(#[from] serde_json::Error),
/// HTTP request error.
#[error("http error: {0}")]
Http(#[from] reqwest::Error),
/// The user cancelled an interactive prompt.
#[error("operation cancelled by user")]
Cancelled,
/// A required identity was not found in the keystore.
#[error("identity not found: {0}")]
IdentityNotFound(String),
}Source line: 5.
error::WalletResult
Convenience alias for wallet results.
pub type WalletResult<T> = Result<T, WalletError>;Source line: 52.