mirror of
https://github.com/pandorafuture/wx-cli.git
synced 2026-08-30 04:00:58 +00:00
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.
29 lines
594 B
Rust
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),
|
|
}
|