Files
wx-cli/crates/wx-context/src/error.rs
pandorafuture 96ccbbdc3d feat: initial release of wx-cli v0.7.2
WeChat macOS database decryption and query tool, supporting key extraction,
message querying, full-text search, conversation export, real-time monitoring,
media handling, and HTTP server mode with REST API and SSE.
2026-06-04 22:50:00 +08:00

29 lines
594 B
Rust

use thiserror::Error;
#[derive(Debug, Error)]
pub enum ContextError {
#[error("keychain: {0}")]
Keychain(#[from] wx_keychain::KeychainError),
#[error("database: {0}")]
Db(#[from] wx_db::DbError),
#[error("decrypt: {0}")]
Decrypt(#[from] wx_decrypt::DecryptError),
#[error("io: {0}")]
Io(#[from] std::io::Error),
#[error("no account found: {0}")]
NoAccount(String),
#[error("no key for account {0}: use `key extract` or `-k`")]
NoKey(String),
#[error("cache: {0}")]
Cache(String),
#[error("sqlite: {0}")]
Sqlite(String),
}