sugar_cli/config/
errors.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum ConfigError {
5 #[error("Could not parse the config file ({0})")]
6 ParseError(String),
7
8 #[error("Missing configuration file '{0}'")]
9 MissingFileError(String),
10
11 #[error("The configuration file path is invalid ('{0}' is a directory)")]
12 InvalidPathError(String),
13
14 #[error("Could not open config file '{0}'")]
15 PermissionError(String),
16
17 #[error("Invalid cluster '{0}'")]
18 InvalidCluster(String),
19
20 #[error("Invalid upload method '{0}'")]
21 InvalidUploadMethod(String),
22
23 #[error("Invalid token standard '{0}'")]
24 InvalidTokenStandard(String),
25}