connectorx/sources/mysql/errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum MySQLSourceError {
5 #[error(transparent)]
6 ConnectorXError(#[from] crate::errors::ConnectorXError),
7
8 #[error(transparent)]
9 MySQLError(#[from] r2d2_mysql::mysql::Error),
10
11 #[error(transparent)]
12 MySQLUrlError(#[from] r2d2_mysql::mysql::UrlError),
13
14 #[error(transparent)]
15 MySQLPoolError(#[from] r2d2::Error),
16
17 /// Any other errors that are too trivial to be put here explicitly.
18 #[error(transparent)]
19 Other(#[from] anyhow::Error),
20}