use thiserror::Error;
#[derive(Debug, Clone, PartialEq, Error)]
pub enum ParseError {
#[error("invalid format at line {line_number} | raw: {raw}")]
InvalidFormat {
raw: String,
line_number: u64,
},
#[error("file not found or inaccessible: {path}")]
FileNotFound {
path: String,
},
#[error("IO error: {0}")]
IoError(String),
}