mirror of https://github.com/buster-so/buster.git
13 lines
349 B
Rust
13 lines
349 B
Rust
|
use std::path::PathBuf;
|
||
|
use thiserror::Error;
|
||
|
|
||
|
#[derive(Debug, Error)]
|
||
|
pub enum BusterError {
|
||
|
#[error("File not found: {path}")]
|
||
|
FileNotFound { path: PathBuf },
|
||
|
#[error("Failed to parse file: {error}")]
|
||
|
ParseError { error: String },
|
||
|
#[error("Failed to write file: {path}")]
|
||
|
FileWriteError { path: PathBuf, error: String },
|
||
|
}
|