miden_node_utils/
errors.rsuse thiserror::Error;
use tonic::transport::Error as TransportError;
#[derive(Debug, Error)]
pub enum ApiError {
#[error("an I/O error has occurred")]
IoError(#[from] std::io::Error),
#[error("initialisation of the Api has failed: {0}")]
ApiInitialisationFailed(String),
#[error("serving the Api server has failed")]
ApiServeFailed(#[from] TransportError),
#[error("resolution of the server address has failed: {0}")]
AddressResolutionFailed(String),
#[error("converting the `Endpoint` into a socket address failed: {0}")]
EndpointToSocketFailed(std::io::Error),
#[error("connection to the database has failed: {0}")]
DatabaseConnectionFailed(String),
}