sui_indexer_alt_framework/ingestion/
error.rs1pub type Result<T> = std::result::Result<T, Error>;
5
6#[derive(thiserror::Error, Debug)]
7pub enum Error {
8 #[error("Checkpoint {0} not found")]
9 NotFound(u64),
10
11 #[error("Failed to decode checkpoint {0}: {1}")]
12 DecodeError(u64, #[source] anyhow::Error),
13
14 #[error("Failed to fetch checkpoint {0}: {1}")]
15 FetchError(u64, #[source] anyhow::Error),
16
17 #[error("Failed to fetch chain id for checkpoint {0}: {1}")]
18 ChainIdError(u64, #[source] anyhow::Error),
19
20 #[error("Failed to fetch latest checkpoint: {0}")]
21 LatestCheckpointError(#[source] anyhow::Error),
22
23 #[error(transparent)]
24 ObjectStoreError(#[from] object_store::Error),
25
26 #[error("No subscribers for ingestion service")]
27 NoSubscribers,
28
29 #[error(transparent)]
30 RpcClientError(#[from] tonic::Status),
31
32 #[error("Streaming error: {0}")]
33 StreamingError(#[source] anyhow::Error),
34}