use thiserror::Error;
#[derive(Error, Debug)]
pub enum PostgresSourceError {
#[error(transparent)]
ConnectorXError(#[from] crate::errors::ConnectorXError),
#[error(transparent)]
PostgresPoolError(#[from] r2d2::Error),
#[error(transparent)]
PostgresError(#[from] postgres::Error),
#[error(transparent)]
CSVError(#[from] csv::Error),
#[error(transparent)]
HexError(#[from] hex::FromHexError),
#[error(transparent)]
IOError(#[from] std::io::Error),
#[error(transparent)]
TlsError(#[from] openssl::error::ErrorStack),
#[error(transparent)]
Other(#[from] anyhow::Error),
}