MeiliSearch/index-scheduler/src/error.rs

18 lines
374 B
Rust
Raw Normal View History

2022-09-06 23:49:19 +02:00
use milli::heed;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Index not found")]
IndexNotFound,
2022-09-06 23:49:19 +02:00
#[error("Corrupted task queue.")]
CorruptedTaskQueue,
#[error(transparent)]
Heed(#[from] heed::Error),
#[error(transparent)]
Milli(#[from] milli::Error),
#[error(transparent)]
Anyhow(#[from] anyhow::Error),
}