Enum tantivy::error::TantivyError
source · [−]pub enum TantivyError {
Show 15 variants
OpenDirectoryError(OpenDirectoryError),
OpenReadError(OpenReadError),
OpenWriteError(OpenWriteError),
IndexAlreadyExists,
LockFailure(LockError, Option<String>),
IoError(Error),
DataCorruption(DataCorruption),
Poisoned,
FieldNotFound(String),
InvalidArgument(String),
ErrorInThread(String),
IndexBuilderMissingArgument(&'static str),
SchemaError(String),
SystemError(String),
IncompatibleIndex(Incompatibility),
}
Expand description
The library’s error enum
Variants
OpenDirectoryError(OpenDirectoryError)
Failed to open the directory.
OpenReadError(OpenReadError)
Failed to open a file for read.
OpenWriteError(OpenWriteError)
Failed to open a file for write.
IndexAlreadyExists
Index already exists in this directory.
LockFailure(LockError, Option<String>)
Failed to acquire file lock.
IoError(Error)
IO Error.
DataCorruption(DataCorruption)
Data corruption.
Poisoned
A thread holding the locked panicked and poisoned the lock.
FieldNotFound(String)
The provided field name does not exist.
InvalidArgument(String)
Invalid argument was passed by the user.
ErrorInThread(String)
An Error occurred in one of the threads.
IndexBuilderMissingArgument(&'static str)
An Error occurred related to opening or creating a index.
SchemaError(String)
An Error occurred related to the schema.
SystemError(String)
System error. (e.g.: We failed spawning a new thread).
IncompatibleIndex(Incompatibility)
Index incompatible with current version of Tantivy.
Trait Implementations
sourceimpl Debug for TantivyError
impl Debug for TantivyError
sourceimpl Display for TantivyError
impl Display for TantivyError
sourceimpl Error for TantivyError
impl Error for TantivyError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DataCorruption> for TantivyError
impl From<DataCorruption> for TantivyError
sourcefn from(data_corruption: DataCorruption) -> TantivyError
fn from(data_corruption: DataCorruption) -> TantivyError
Performs the conversion.
sourceimpl From<DocParsingError> for TantivyError
impl From<DocParsingError> for TantivyError
sourcefn from(error: DocParsingError) -> TantivyError
fn from(error: DocParsingError) -> TantivyError
Performs the conversion.
sourceimpl From<Error> for TantivyError
impl From<Error> for TantivyError
sourcefn from(error: Error) -> TantivyError
fn from(error: Error) -> TantivyError
Performs the conversion.
sourceimpl From<FastFieldNotAvailableError> for TantivyError
impl From<FastFieldNotAvailableError> for TantivyError
sourcefn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
Performs the conversion.
sourceimpl From<LockError> for TantivyError
impl From<LockError> for TantivyError
sourcefn from(lock_error: LockError) -> TantivyError
fn from(lock_error: LockError) -> TantivyError
Performs the conversion.
sourceimpl From<OpenDirectoryError> for TantivyError
impl From<OpenDirectoryError> for TantivyError
sourcefn from(source: OpenDirectoryError) -> Self
fn from(source: OpenDirectoryError) -> Self
Performs the conversion.
sourceimpl From<OpenReadError> for TantivyError
impl From<OpenReadError> for TantivyError
sourcefn from(source: OpenReadError) -> Self
fn from(source: OpenReadError) -> Self
Performs the conversion.
sourceimpl From<OpenWriteError> for TantivyError
impl From<OpenWriteError> for TantivyError
sourcefn from(source: OpenWriteError) -> Self
fn from(source: OpenWriteError) -> Self
Performs the conversion.
sourceimpl From<ParseError> for TantivyError
impl From<ParseError> for TantivyError
sourcefn from(err: ParseError) -> TantivyError
fn from(err: ParseError) -> TantivyError
Performs the conversion.
sourceimpl<Guard> From<PoisonError<Guard>> for TantivyError
impl<Guard> From<PoisonError<Guard>> for TantivyError
sourcefn from(_: PoisonError<Guard>) -> TantivyError
fn from(_: PoisonError<Guard>) -> TantivyError
Performs the conversion.
sourceimpl From<QueryParserError> for TantivyError
impl From<QueryParserError> for TantivyError
sourcefn from(parsing_error: QueryParserError) -> TantivyError
fn from(parsing_error: QueryParserError) -> TantivyError
Performs the conversion.
sourceimpl From<ThreadPoolBuildError> for TantivyError
impl From<ThreadPoolBuildError> for TantivyError
sourcefn from(error: ThreadPoolBuildError) -> TantivyError
fn from(error: ThreadPoolBuildError) -> TantivyError
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TantivyError
impl Send for TantivyError
impl Sync for TantivyError
impl Unpin for TantivyError
impl UnwindSafe for TantivyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more