Skip to main content

docbox_search/database/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum DatabaseSearchIndexFactoryError {}
5
6#[derive(Debug, Error)]
7pub enum DatabaseSearchError {
8    #[error("failed to connect")]
9    AcquireDatabase,
10
11    #[error("migration not found")]
12    MigrationNotFound,
13
14    #[error("failed to search index")]
15    SearchIndex,
16
17    #[error("failed to count page matches")]
18    CountFilePages,
19
20    #[error("failed to search file pages")]
21    SearchFilePages,
22
23    #[error("failed to delete search data")]
24    DeleteData,
25
26    #[error("failed to apply migration")]
27    ApplyMigration,
28
29    #[error("failed to add search data")]
30    AddData,
31}