Skip to main content

simi/
error.rs

1use crate::prelude::*;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum SimiError {
6    #[error("Algorithm error: {0}")]
7    AlgorithmError(String),
8
9    #[error("Preprocessing error: {0}")]
10    PreprocessError(String),
11
12    #[error("Router configuration error: {0}")]
13    RouterError(String),
14
15    #[error("Batch processing error: {0}")]
16    BatchError(String),
17}