kona_node_service/actors/network/error.rs
1//! Contains the error type for the network driver builder.
2
3use kona_p2p::{Discv5BuilderError, GossipDriverBuilderError};
4
5/// An error from the [`crate::NetworkBuilder`].
6#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
7pub enum NetworkBuilderError {
8 /// An error from building the gossip driver.
9 #[error(transparent)]
10 GossipDriverBuilder(#[from] GossipDriverBuilderError),
11 /// An error from building the discv5 driver.
12 #[error(transparent)]
13 DiscoveryDriverBuilder(#[from] Discv5BuilderError),
14}