qdrant_datafusion/
error.rs

1pub type Result<T> = std::result::Result<T, Error>;
2
3#[derive(thiserror::Error, Debug)]
4pub enum Error {
5    #[error("DataFusion error: {0:?}")]
6    DataFusion(#[from] datafusion::error::DataFusionError),
7    #[error("Qdrant error: {0:?}")]
8    Qdrant(Box<qdrant_client::QdrantError>),
9    #[error("Collection info not found for collection '{0}'")]
10    MissingCollectionInfo(String),
11    #[error("Collection info params not found for collection '{0}'")]
12    MissingCollectionInfoParams(String),
13}
14
15impl From<qdrant_client::QdrantError> for Error {
16    fn from(err: qdrant_client::QdrantError) -> Self { Error::Qdrant(Box::new(err)) }
17}