This commit is contained in:
XuanLee-HEALER
2025-11-10 15:30:21 +08:00
parent 4716b82f29
commit df39693dff
43 changed files with 6864 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
/// Custom error types for the application
/// Uses thiserror for ergonomic error definitions
use thiserror::Error;
#[derive(Error, Debug)]
pub enum DataTransferError {
#[error("Configuration error: {0}")]
ConfigError(String),
#[error("Command execution failed: {0}")]
CommandError(String),
#[error("I/O error: {0}")]
IoError(#[from] std::io::Error),
#[error("Unknown error occurred")]
Unknown,
}
pub type Result<T> = std::result::Result<T, DataTransferError>;