Skip to main content

hopr_network_graph/
errors.rs

1use hopr_api::OffchainPublicKey;
2use thiserror::Error;
3
4/// Errors that can occur when manipulating the channel graph.
5#[derive(Error, Debug, PartialEq, Eq)]
6pub enum ChannelGraphError {
7    /// Node identified by its public key not found in the graph.
8    #[error("node with public key not found: {0}")]
9    PublicKeyNodeNotFound(OffchainPublicKey),
10}