mint_cli/variant/errors.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum VariantError {
5 #[error("File error: {0}.")]
6 FileError(String),
7
8 #[error("Excel column not found: {0}.")]
9 ColumnNotFound(String),
10
11 #[error("Excel retrieval error: {0}.")]
12 RetrievalError(String),
13
14 #[error("Misc error: {0}.")]
15 MiscError(String),
16
17 #[error("While retrieving '{name}': {source}")]
18 WhileRetrieving {
19 name: String,
20 #[source]
21 source: Box<VariantError>,
22 },
23}