toml_input/error.rs
1use thiserror::Error;
2#[derive(Debug, Clone, Error)]
3pub enum Error {
4 #[error("serializing a type failed: {0}")]
5 TomlSerError(#[from] toml::ser::Error),
6 #[error("from_str error: {0}")]
7 FromStrError(String),
8 #[error("root node must be Struct type")]
9 RootMustStruct,
10 #[error("enum no variant")]
11 EnumEmpty,
12 #[error("enum style error: {0}")]
13 EnumStyleError(String),
14}