Skip to main content

btcnode_metrics/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("Bitcoin RPC error: {0}")]
6    Rpc(#[from] corepc_client::client_sync::Error),
7
8    #[error("Prometheus error: {0}")]
9    Prometheus(#[from] prometheus::Error),
10
11    #[error("Configuration error: {0}")]
12    Config(String),
13}