pub enum TantivyError {
Show 21 variants
AggregationError(AggregationError),
OpenDirectoryError(OpenDirectoryError),
OpenReadError(OpenReadError),
OpenWriteError(OpenWriteError),
IndexAlreadyExists,
LockFailure(LockError, Option<String>),
IoError(Arc<Error>),
DataCorruption(DataCorruption),
Poisoned,
FieldNotFound(String),
InvalidArgument(String),
ErrorInThread(String),
IndexBuilderMissingArgument(&'static str),
SchemaError(String),
SystemError(String),
IncompatibleIndex(Incompatibility),
InternalError(String),
DeserializeError(DeserializeError),
MissingPlugin(String),
ConflictingPlugins(String),
UnexpectedPlugin(String),
}Expand description
The library’s error enum
Variants§
AggregationError(AggregationError)
Error when handling aggregations.
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(Arc<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.
InternalError(String)
An internal error occurred. This is are internal states that should not be reached. e.g. a datastructure is incorrectly initialized.
DeserializeError(DeserializeError)
An error occurred while attempting to deserialize a document.
MissingPlugin(String)
A segment plugin required by the index is not registered.
ConflictingPlugins(String)
Multiple registered segment plugins claim ownership of the same extension(s).
UnexpectedPlugin(String)
A segment plugin was registered on a non-empty index whose existing segments do not contain its extension(s).
Trait Implementations§
Source§impl Clone for TantivyError
impl Clone for TantivyError
Source§impl Debug for TantivyError
impl Debug for TantivyError
Source§impl Display for TantivyError
impl Display for TantivyError
Source§impl Error for TantivyError
impl Error for TantivyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<AggregationError> for TantivyError
impl From<AggregationError> for TantivyError
Source§fn from(source: AggregationError) -> Self
fn from(source: AggregationError) -> Self
Source§impl From<ComponentRange> for TantivyError
impl From<ComponentRange> for TantivyError
Source§fn from(err: ComponentRange) -> TantivyError
fn from(err: ComponentRange) -> TantivyError
Source§impl From<DataCorruption> for TantivyError
impl From<DataCorruption> for TantivyError
Source§fn from(data_corruption: DataCorruption) -> TantivyError
fn from(data_corruption: DataCorruption) -> TantivyError
Source§impl From<DeserializeError> for TantivyError
impl From<DeserializeError> for TantivyError
Source§fn from(error: DeserializeError) -> TantivyError
fn from(error: DeserializeError) -> TantivyError
Source§impl From<DocParsingError> for TantivyError
impl From<DocParsingError> for TantivyError
Source§fn from(error: DocParsingError) -> TantivyError
fn from(error: DocParsingError) -> TantivyError
Source§impl From<Error> for TantivyError
impl From<Error> for TantivyError
Source§fn from(io_err: Error) -> TantivyError
fn from(io_err: Error) -> TantivyError
Source§impl From<Error> for TantivyError
impl From<Error> for TantivyError
Source§fn from(error: Error) -> TantivyError
fn from(error: Error) -> TantivyError
Source§impl From<FastFieldNotAvailableError> for TantivyError
impl From<FastFieldNotAvailableError> for TantivyError
Source§fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
Source§impl From<Format> for TantivyError
impl From<Format> for TantivyError
Source§fn from(err: Format) -> TantivyError
fn from(err: Format) -> TantivyError
Source§impl From<LockError> for TantivyError
impl From<LockError> for TantivyError
Source§fn from(lock_error: LockError) -> TantivyError
fn from(lock_error: LockError) -> TantivyError
Source§impl From<OpenDirectoryError> for TantivyError
impl From<OpenDirectoryError> for TantivyError
Source§fn from(source: OpenDirectoryError) -> Self
fn from(source: OpenDirectoryError) -> Self
Source§impl From<OpenReadError> for TantivyError
impl From<OpenReadError> for TantivyError
Source§fn from(source: OpenReadError) -> Self
fn from(source: OpenReadError) -> Self
Source§impl From<OpenWriteError> for TantivyError
impl From<OpenWriteError> for TantivyError
Source§fn from(source: OpenWriteError) -> Self
fn from(source: OpenWriteError) -> Self
Source§impl From<Parse> for TantivyError
impl From<Parse> for TantivyError
Source§fn from(err: Parse) -> TantivyError
fn from(err: Parse) -> TantivyError
Source§impl<Guard> From<PoisonError<Guard>> for TantivyError
impl<Guard> From<PoisonError<Guard>> for TantivyError
Source§fn from(_: PoisonError<Guard>) -> TantivyError
fn from(_: PoisonError<Guard>) -> TantivyError
Source§impl From<QueryParserError> for TantivyError
impl From<QueryParserError> for TantivyError
Source§fn from(parsing_error: QueryParserError) -> TantivyError
fn from(parsing_error: QueryParserError) -> TantivyError
Source§impl<T> From<TantivyError> for FutureResult<T>
impl<T> From<TantivyError> for FutureResult<T>
Source§fn from(err: TantivyError) -> Self
fn from(err: TantivyError) -> Self
Source§impl From<ThreadPoolBuildError> for TantivyError
impl From<ThreadPoolBuildError> for TantivyError
Source§fn from(error: ThreadPoolBuildError) -> TantivyError
fn from(error: ThreadPoolBuildError) -> TantivyError
Auto Trait Implementations§
impl !RefUnwindSafe for TantivyError
impl !UnwindSafe for TantivyError
impl Freeze for TantivyError
impl Send for TantivyError
impl Sync for TantivyError
impl Unpin for TantivyError
impl UnsafeUnpin for TantivyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more