1 2 3 4 5 6 7 8 9 10 11 12 13
//use thiserror; #[derive(thiserror::Error, Debug)] pub enum YangError { #[error(transparent)] IoError(#[from] std::io::Error), #[error("YANG file not found")] FileNotFound, #[error("YANG file parse error")] ParseError, }