connectorx/sources/sqlite/
errors.rs1use std::string::FromUtf8Error;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
6pub enum SQLiteSourceError {
7 #[error("Cannot infer type from null for SQLite")]
9 InferTypeFromNull,
10
11 #[error(transparent)]
13 ConnectorXError(#[from] crate::errors::ConnectorXError),
14
15 #[error(transparent)]
17 SQLiteError(#[from] rusqlite::Error),
18
19 #[error(transparent)]
21 SQLitePoolError(#[from] r2d2::Error),
22
23 #[error(transparent)]
25 SQLiteUrlDecodeError(#[from] FromUtf8Error),
26
27 #[error(transparent)]
29 Other(#[from] anyhow::Error),
30}