mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-23 18:58:49 +01:00
26 lines
615 B
Rust
26 lines
615 B
Rust
use milli::heed;
|
|
use thiserror::Error;
|
|
|
|
use crate::index;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Error {
|
|
#[error("Index `{0}` not found")]
|
|
IndexNotFound(String),
|
|
#[error("Index `{0}` already exists")]
|
|
IndexAlreadyExists(String),
|
|
#[error("Corrupted task queue.")]
|
|
CorruptedTaskQueue,
|
|
#[error(transparent)]
|
|
Heed(#[from] heed::Error),
|
|
#[error(transparent)]
|
|
Milli(#[from] milli::Error),
|
|
#[error("{0}")]
|
|
IndexError(#[from] index::error::IndexError),
|
|
#[error(transparent)]
|
|
IoError(#[from] std::io::Error),
|
|
|
|
#[error(transparent)]
|
|
Anyhow(#[from] anyhow::Error),
|
|
}
|