veryl_path/
path_error.rs

1use miette::{self, Diagnostic};
2use thiserror::Error;
3
4#[derive(Error, Diagnostic, Debug)]
5pub enum PathError {
6    #[diagnostic(code(PathError::FileIO), help(""))]
7    #[error("file I/O error")]
8    FileIO(#[from] std::io::Error),
9
10    #[diagnostic(code(PathError::StripPrefix), help(""))]
11    #[error("strip prefix error")]
12    StripPrefix(#[from] std::path::StripPrefixError),
13}