sui_indexer_alt_framework/ingestion/
error.rspub type Result<T> = std::result::Result<T, Error>;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("Checkpoint {0} not found")]
NotFound(u64),
#[error("Failed to deserialize checkpoint {0}: {1}")]
DeserializationError(u64, #[source] anyhow::Error),
#[error("Failed to fetch checkpoint {0}: {1}")]
FetchError(u64, #[source] anyhow::Error),
#[error(transparent)]
ReqwestError(#[from] reqwest::Error),
#[error("No subscribers for ingestion service")]
NoSubscribers,
#[error("Shutdown signal received, stopping ingestion service")]
Cancelled,
#[error(transparent)]
RpcClientError(#[from] tonic::Status),
}