cipherstash_config/
errors.rs1use super::{list::DuplicateEntry, ColumnConfig};
2use crate::TableConfig;
3use std::convert::Infallible;
4use thiserror::Error;
5
6#[derive(Error, Debug)]
7pub enum ConfigError {
8 #[error("Further qualification to {0} is not possible with qualifer {1}")]
9 UnexpectedQualifier(String, String),
10 #[error("'{0}' is not a valid path")]
11 InvalidPath(String),
12 #[error("Scope qualifiers do no match")]
13 MismatchedScope,
14 #[error(transparent)]
15 Infallible(#[from] Infallible),
16 #[error(transparent)]
17 DuplicateRelation(#[from] DuplicateEntry<TableConfig>),
18 #[error(transparent)]
19 DuplicateField(#[from] DuplicateEntry<ColumnConfig>),
20}