yedad_eye 0.1.0

YEDAD EYE Matrix Engine - Real-time Network Explorer and Synchronizer
Documentation
// yedad_eye/src/error.rs

#[derive(Debug, Clone)]
pub enum EyeError {
    NetworkError(String),
    DatabaseError(String),
    ParsingError(String),
    NodeNotFound(String),
}

impl std::fmt::Display for EyeError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            EyeError::NetworkError(e) => write!(f, "Network connection failed: {}", e),
            EyeError::DatabaseError(e) => write!(f, "Local database error: {}", e),
            EyeError::ParsingError(e) => write!(f, "Data structural parsing error: {}", e),
            EyeError::NodeNotFound(e) => write!(f, "Target node address not found: {}", e),
        }
    }
}

impl std::error::Error for EyeError {}