Enum tantivy::error::TantivyError
source · pub enum TantivyError {
Show 18 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),
}
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 inititalized.
DeserializeError(DeserializeError)
An error occurred while attempting to deserialize a document.
Trait Implementations§
source§impl Clone for TantivyError
impl Clone for TantivyError
source§fn clone(&self) -> TantivyError
fn clone(&self) -> TantivyError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§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
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(error: Error) -> TantivyError
fn from(error: Error) -> 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<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 Freeze for TantivyError
impl !RefUnwindSafe for TantivyError
impl Send for TantivyError
impl Sync for TantivyError
impl Unpin for TantivyError
impl !UnwindSafe 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
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>
. Box<dyn Any>
can
then be further downcast
into Box<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>
. Rc<Any>
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.