Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
use tantivy::{directory::error::OpenDirectoryError, query::QueryParserError, TantivyError};
use crate::{ErrorCode, FlowyError};
impl std::convert::From<TantivyError> for FlowyError {
fn from(error: TantivyError) -> Self {
FlowyError::new(ErrorCode::IndexWriterFailedCommit, error)
}
}
impl std::convert::From<OpenDirectoryError> for FlowyError {
fn from(error: OpenDirectoryError) -> Self {
FlowyError::new(ErrorCode::FailedToOpenIndexDir, error)
}
}
impl std::convert::From<QueryParserError> for FlowyError {
fn from(error: QueryParserError) -> Self {
FlowyError::new(ErrorCode::FailedToParseQuery, error)
}
}