1use std::string::FromUtf8Error;
2use thiserror::Error;
34#[derive(Error, Debug)]
5pub enum OracleSourceError {
6#[error(transparent)]
7ConnectorXError(#[from] crate::errors::ConnectorXError),
89#[error(transparent)]
10OracleError(#[from] r2d2_oracle::oracle::Error),
1112#[error(transparent)]
13OraclePoolError(#[from] r2d2::Error),
1415#[error(transparent)]
16OracleUrlError(#[from] url::ParseError),
1718#[error(transparent)]
19OracleUrlDecodeError(#[from] FromUtf8Error),
2021/// Any other errors that are too trivial to be put here explicitly.
22#[error(transparent)]
23Other(#[from] anyhow::Error),
24}