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

source§

fn clone(&self) -> TantivyError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TantivyError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for TantivyError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for TantivyError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AggregationError> for TantivyError

source§

fn from(source: AggregationError) -> Self

Converts to this type from the input type.
source§

impl From<ComponentRange> for TantivyError

source§

fn from(err: ComponentRange) -> TantivyError

Converts to this type from the input type.
source§

impl From<DataCorruption> for TantivyError

source§

fn from(data_corruption: DataCorruption) -> TantivyError

Converts to this type from the input type.
source§

impl From<DeserializeError> for TantivyError

source§

fn from(error: DeserializeError) -> TantivyError

Converts to this type from the input type.
source§

impl From<DocParsingError> for TantivyError

source§

fn from(error: DocParsingError) -> TantivyError

Converts to this type from the input type.
source§

impl From<Error> for TantivyError

source§

fn from(error: Error) -> TantivyError

Converts to this type from the input type.
source§

impl From<Error> for TantivyError

source§

fn from(io_err: Error) -> TantivyError

Converts to this type from the input type.
source§

impl From<FastFieldNotAvailableError> for TantivyError

source§

fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError

Converts to this type from the input type.
source§

impl From<Format> for TantivyError

source§

fn from(err: Format) -> TantivyError

Converts to this type from the input type.
source§

impl From<LockError> for TantivyError

source§

fn from(lock_error: LockError) -> TantivyError

Converts to this type from the input type.
source§

impl From<OpenDirectoryError> for TantivyError

source§

fn from(source: OpenDirectoryError) -> Self

Converts to this type from the input type.
source§

impl From<OpenReadError> for TantivyError

source§

fn from(source: OpenReadError) -> Self

Converts to this type from the input type.
source§

impl From<OpenWriteError> for TantivyError

source§

fn from(source: OpenWriteError) -> Self

Converts to this type from the input type.
source§

impl From<Parse> for TantivyError

source§

fn from(err: Parse) -> TantivyError

Converts to this type from the input type.
source§

impl<Guard> From<PoisonError<Guard>> for TantivyError

source§

fn from(_: PoisonError<Guard>) -> TantivyError

Converts to this type from the input type.
source§

impl From<QueryParserError> for TantivyError

source§

fn from(parsing_error: QueryParserError) -> TantivyError

Converts to this type from the input type.
source§

impl<T> From<TantivyError> for FutureResult<T>

source§

fn from(err: TantivyError) -> Self

Converts to this type from the input type.
source§

impl From<ThreadPoolBuildError> for TantivyError

source§

fn from(error: ThreadPoolBuildError) -> TantivyError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for T
where T: Any,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

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.
source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert 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)

Convert &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)

Convert &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> DowncastSync for T
where T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Fruit for T
where T: Send + Downcast,