#[non_exhaustive]
#[derive(thiserror::Error, Debug)]
pub enum MartinCoreError {
#[cfg(feature = "mbtiles")]
#[error(transparent)]
MbtilesError(#[from] super::mbtiles::MbtilesError),
#[cfg(feature = "postgres")]
#[error(transparent)]
PostgresError(#[from] super::postgres::PostgresError),
#[cfg(feature = "pmtiles")]
#[error(transparent)]
PmtilesError(#[from] super::pmtiles::PmtilesError),
#[cfg(feature = "unstable-cog")]
#[error(transparent)]
CogError(#[from] super::cog::CogError),
#[error(transparent)]
OtherError(#[from] Box<dyn std::error::Error>),
}
pub type MartinCoreResult<T> = Result<T, MartinCoreError>;