boots_core/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum BootsError {
5    #[error("Invalid project type: {0}")]
6    InvalidProjectType(String),
7
8    #[error("Invalid option: {0}")]
9    InvalidOption(String),
10
11    #[error("IO error: {0}")]
12    Io(#[from] std::io::Error),
13
14    #[error("Template error: {0}")]
15    Template(String),
16
17    #[error("Directory already exists: {0}")]
18    DirectoryExists(String),
19}
20
21pub type Result<T> = std::result::Result<T, BootsError>;