Initial upload: gitignore-gen Rust CLI tool with 100+ templates
This commit is contained in:
16
app/gitignore-gen/src/core/error.rs
Normal file
16
app/gitignore-gen/src/core/error.rs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
use thiserror::Error;
|
||||||
|
|
||||||
|
#[derive(Debug, Error)]
|
||||||
|
pub enum AppError {
|
||||||
|
#[error("Configuration error: {message}")]
|
||||||
|
ConfigError { message: String },
|
||||||
|
|
||||||
|
#[error("Template error: {message}")]
|
||||||
|
TemplateError { message: String },
|
||||||
|
|
||||||
|
#[error("IO error: {message}")]
|
||||||
|
IoError { message: String },
|
||||||
|
|
||||||
|
#[error("Unknown error occurred")]
|
||||||
|
Unknown,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user