diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-11 17:38:08 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-11 17:38:08 +0800 |
| commit | 4effbd209edf96637d7da2b7d29ea1a6de3c637a (patch) | |
| tree | 397223a02b80b858ceb41af0126d0c9e731f2047 /systems/_config/src/error.rs | |
| parent | 794316c6e925097ef6b87693b4a610b4563309e6 (diff) | |
Add config system and space macro with workspace dependencies
Diffstat (limited to 'systems/_config/src/error.rs')
| -rw-r--r-- | systems/_config/src/error.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/systems/_config/src/error.rs b/systems/_config/src/error.rs new file mode 100644 index 0000000..791aab2 --- /dev/null +++ b/systems/_config/src/error.rs @@ -0,0 +1,19 @@ +use std::path::PathBuf; + +#[derive(thiserror::Error, Debug)] +pub enum ConfigError { + #[error("Failed to read config file: {0}")] + ConfigReadFailed(#[source] std::io::Error), + + #[error("Failed to write config file: {0}")] + ConfigWriteFailed(#[source] std::io::Error), + + #[error("Config file not found: {0}")] + FileNotFound(PathBuf), + + #[error("IO error: {0}")] + Io(#[source] std::io::Error), + + #[error("Other error: {0}")] + Other(String), +} |
