use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
ChronoParse(#[from] chrono::format::ParseError),
#[error(transparent)]
Cql2(#[from] Box<cql2::Error>),
#[error(transparent)]
DuckDB(#[from] duckdb::Error),
#[error(transparent)]
GeoArrow(#[from] geoarrow_schema::error::GeoArrowError),
#[error(transparent)]
SerdeJson(#[from] serde_json::Error),
#[error(transparent)]
GeoJSON(#[from] Box<geojson::Error>),
#[error(transparent)]
Stac(#[from] stac::Error),
#[error("query is not implemented")]
QueryNotImplemented,
#[error(transparent)]
TryFromInt(#[from] std::num::TryFromIntError),
}