use thiserror::Error;
#[derive(Debug, Error)]
pub enum SyncError {
#[error("CDC consumer error: {0}")]
Cdc(String),
#[error("OLAP engine error: {0}")]
Olap(String),
#[error("schema error: {0}")]
Schema(#[from] rhei_core::CoreError),
#[error("conversion error: {0}")]
Conversion(String),
#[error("unsupported type in CDC event: {0}")]
UnsupportedType(String),
#[error("serialization error: {0}")]
Serialization(#[from] serde_json::Error),
#[error("{0}")]
Other(String),
}