Skip to main content

bitcoin_heuristics/
errors.rs

1use thiserror::Error;
2
3/// Errors that can occur during heuristic evaluation.
4#[derive(Debug, Error)]
5pub enum HeuristicError {
6    #[error("Bitcoin RPC error: {0}")]
7    Rpc(#[from] anyhow::Error),
8    #[error("JSON serialization error: {0}")]
9    Json(#[from] serde_json::Error),
10}