oxinav_core/error.rs
1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum OxiNavError {
6 #[error("I/O error at {path}: {source}")]
7 Io {
8 path: PathBuf,
9 #[source]
10 source: std::io::Error,
11 },
12 #[error("destination already exists: {0}")]
13 DestinationExists(PathBuf),
14 #[error("source not found: {0}")]
15 SourceNotFound(PathBuf),
16}