1
2
3
4
5
6
7
8
9
10
11
12
13
use kaspa_notify::events::EventType;
use kaspa_utxoindex::errors::UtxoIndexError;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum IndexError {
    #[error("{0}")]
    UtxoIndexError(#[from] UtxoIndexError),

    #[error("event type {0:?} is not supported")]
    NotSupported(EventType),
}
pub type IndexResult<T> = std::result::Result<T, IndexError>;