connectorx/sources/oracle/
errors.rs

1use std::string::FromUtf8Error;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum OracleSourceError {
6    #[error(transparent)]
7    ConnectorXError(#[from] crate::errors::ConnectorXError),
8
9    #[error(transparent)]
10    OracleError(#[from] r2d2_oracle::oracle::Error),
11
12    #[error(transparent)]
13    OraclePoolError(#[from] r2d2::Error),
14
15    #[error(transparent)]
16    OracleUrlError(#[from] url::ParseError),
17
18    #[error(transparent)]
19    OracleUrlDecodeError(#[from] FromUtf8Error),
20
21    /// Any other errors that are too trivial to be put here explicitly.
22    #[error(transparent)]
23    Other(#[from] anyhow::Error),
24}