ferrite_navigation/error.rs
1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum NavigationError {
6 #[error("Failed to access directory: {0}")]
7 DirectoryAccess(#[from] std::io::Error),
8
9 #[error("Invalid path: {0}")]
10 InvalidPath(PathBuf),
11}
12
13pub type Result<T> = std::result::Result<T, NavigationError>;