1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum DDAError {
5 #[error("DDA binary not found at: {0}")]
6 BinaryNotFound(String),
7
8 #[error("Input file not found: {0}")]
9 FileNotFound(String),
10
11 #[error("Unsupported file type: {0}")]
12 UnsupportedFileType(String),
13
14 #[error("DDA execution failed: {0}")]
15 ExecutionFailed(String),
16
17 #[error("Failed to parse DDA output: {0}")]
18 ParseError(String),
19
20 #[error("IO error: {0}")]
21 IoError(#[from] std::io::Error),
22
23 #[error("Invalid parameter: {0}")]
24 InvalidParameter(String),
25}
26
27pub type Result<T> = std::result::Result<T, DDAError>;