use std::string::FromUtf8Error;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum OracleSourceError {
#[error(transparent)]
ConnectorXError(#[from] crate::errors::ConnectorXError),
#[error(transparent)]
OracleError(#[from] r2d2_oracle::oracle::Error),
#[error(transparent)]
OraclePoolError(#[from] r2d2::Error),
#[error(transparent)]
OracleUrlError(#[from] url::ParseError),
#[error(transparent)]
OracleUrlDecodeError(#[from] FromUtf8Error),
/// Any other errors that are too trivial to be put here explicitly.
#[error(transparent)]
Other(#[from] anyhow::Error),
}