git_rune/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum RuneError {
5    #[error("Git error: {0}")]
6    Git(#[from] git2::Error),
7
8    #[error("Configuration error: {0}")]
9    Config(#[from] crate::config::ConfigError),
10
11    #[error("LLM error: {0}")]
12    LLM(String),
13
14    #[error("IO error: {0}")]
15    Io(#[from] std::io::Error),
16
17    #[error("Ignore pattern error: {0}")]
18    Ignore(#[from] ignore::Error),
19
20    #[error(transparent)]
21    Other(#[from] anyhow::Error),
22}
23
24pub type Result<T> = std::result::Result<T, RuneError>;