use thiserror::Error; #[derive(Error, Debug)] pub enum RenderError { #[error("LilyPond not found: {0}")] LilyPondNotFound(String), #[error("LilyPond execution failed: {0}")] LilyPondExecution(String), #[error("Template error: {0}")] Template(String), #[error("File I/O error: {0}")] FileIO(#[from] std::io::Error), #[error("Invalid sequence: {0}")] InvalidSequence(String), }