kaspa_index_processor/errors.rs
1use kaspa_notify::events::EventType;
2use kaspa_utxoindex::errors::UtxoIndexError;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum IndexError {
7 #[error("{0}")]
8 UtxoIndexError(#[from] UtxoIndexError),
9
10 #[error("event type {0:?} is not supported")]
11 NotSupported(EventType),
12}
13pub type IndexResult<T> = std::result::Result<T, IndexError>;