connectorx/sources/postgres/
errors.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum PostgresSourceError {
5 #[error(transparent)]
6 ConnectorXError(#[from] crate::errors::ConnectorXError),
7
8 #[error(transparent)]
9 PostgresPoolError(#[from] r2d2::Error),
10
11 #[error(transparent)]
12 PostgresError(#[from] postgres::Error),
13
14 #[error(transparent)]
15 CSVError(#[from] csv::Error),
16
17 #[error(transparent)]
18 HexError(#[from] hex::FromHexError),
19
20 #[error(transparent)]
21 IOError(#[from] std::io::Error),
22
23 #[error(transparent)]
24 TlsError(#[from] openssl::error::ErrorStack),
25
26 #[error(transparent)]
28 Other(#[from] anyhow::Error),
29}