anvil/server/
error.rs

1
2
3
4
5
6
7
8
9
10
11
/// Result alias
pub type NodeResult<T> = Result<T, NodeError>;

/// An error that can occur when launching a anvil instance
#[derive(Debug, thiserror::Error)]
pub enum NodeError {
    #[error(transparent)]
    Hyper(#[from] hyper::Error),
    #[error(transparent)]
    Io(#[from] std::io::Error),
}