Skip to main content

config/de/
error.rs

1use thiserror::Error;
2
3/// Represents the deserialization errors that can occur.
4#[derive(Error, Debug, PartialEq)]
5pub enum Error {
6    /// Indicates a value is missing for a field.
7    #[error("Missing value for field '{0}'")]
8    MissingValue(&'static str),
9
10    /// Indicates a custom error message
11    #[error("{0}")]
12    Custom(String),
13}