mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-06-15 09:09:50 +02:00
24 lines
596 B
Rust
24 lines
596 B
Rust
use milli::heed;
|
|
use thiserror::Error;
|
|
|
|
#[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),
|
|
}
|