rsp_cli/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum RspError {
5 #[error("IO error: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("YAML parsing error: {0}")]
9 Yaml(#[from] serde_yaml::Error),
10
11 #[error("Invalid file format: {0}")]
12 InvalidFormat(String),
13
14 #[error("File not found: {0}")]
15 FileNotFound(String),
16
17 #[error("Processing error: {0}")]
18 Processing(String),
19}