connectorx/sources/oracle/
errors.rs1use std::string::FromUtf8Error;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
6pub enum OracleSourceError {
7 #[error(transparent)]
9 ConnectorXError(#[from] crate::errors::ConnectorXError),
10
11 #[error(transparent)]
13 OracleError(#[from] r2d2_oracle::oracle::Error),
14
15 #[error(transparent)]
17 OraclePoolError(#[from] r2d2::Error),
18
19 #[error(transparent)]
21 OracleUrlError(#[from] url::ParseError),
22
23 #[error(transparent)]
25 OracleUrlDecodeError(#[from] FromUtf8Error),
26
27 #[error(transparent)]
29 DecimalError(#[from] rust_decimal::Error),
30
31 #[error(
34 "column {column} is a native BOOLEAN, but Oracle Instant Client {client} can return \
35 wrong BOOLEAN values without raising an error. Upgrade Instant Client to 23.5 or \
36 later, or convert the column in SQL, e.g. CAST({column} AS NUMBER)"
37 )]
38 UnreliableBooleanClient {
39 column: String,
41 client: String,
43 },
44
45 #[error(transparent)]
47 Other(#[from] anyhow::Error),
48}