connectorx/sources/csv/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CSVSourceError {
5 #[error(transparent)]
6 ConnectorXError(#[from] crate::errors::ConnectorXError),
7
8 #[error(transparent)]
9 RegexError(#[from] regex::Error),
10
11 #[error(transparent)]
12 CSVError(#[from] csv::Error),
13
14 #[error(transparent)]
15 IOError(#[from] std::io::Error),
16
17 /// Any other errors that are too trivial to be put here explicitly.
18 #[error(transparent)]
19 Other(#[from] anyhow::Error),
20}