pub enum ConfigError {
InvalidKey(String),
KeyNotFound(String),
ParseError(String),
SerializationError(String),
TypeConversionError(String),
KeyAlreadyExists(String),
KeyDoesNotExist(String),
DeleteError(String),
Other(String),
}Expand description
Error type for configuration operations.
This enum represents all possible errors that can occur when working with configuration content.
Variants§
InvalidKey(String)
Error parsing a configuration key.
This error occurs when the key string format is invalid or cannot be parsed into a valid Key.
KeyNotFound(String)
Error accessing a configuration value.
This error occurs when the specified key does not exist in the configuration.
ParseError(String)
Error parsing configuration content.
This error occurs when the configuration string cannot be parsed into a valid configuration structure.
SerializationError(String)
Error serializing configuration content.
This error occurs when the configuration structure cannot be serialized to a string.
TypeConversionError(String)
Error converting between types.
This error occurs when a value cannot be converted to the requested type.
KeyAlreadyExists(String)
Error when performing insert operation.
This error occurs when trying to insert a value that already exists.
KeyDoesNotExist(String)
Error when performing update operation.
This error occurs when trying to update a value that does not exist.
DeleteError(String)
Error when performing delete operation.
This error occurs when trying to delete a value that does not exist.
Other(String)
Generic error for other error cases.
This error is used for errors that don’t fit into the other categories.