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