summaryrefslogtreecommitdiff
path: root/morphology-img/src/error.rs
blob: cee092d5f7c4b00158bae557b9e40234ade5fb41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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),
}