Enum tantivy::Error[][src]

pub enum Error {
    PathDoesNotExist(PathBuf),
    FileAlreadyExists(PathBuf),
    LockFailure(LockType),
    IOError(IOError),
    CorruptedFile(PathBuf),
    Poisoned,
    InvalidArgument(String),
    ErrorInThread(String),
    SchemaError(String),
    FastFieldError(FastFieldNotAvailableError),
}

The library's failure based error enum

Variants

Path does not exist.

File already exists, this is a problem when we try to write into a new file.

Failed to acquire file lock

IO Error.

The data within is corrupted.

For instance, it contains invalid JSON.

A thread holding the locked panicked and poisoned the lock.

Invalid argument was passed by the user.

An Error happened in one of the thread.

An Error appeared related to the schema.

Tried to access a fastfield reader for a field not configured accordingly.

Trait Implementations

impl Debug for TantivyError
[src]

Formats the value using the given formatter. Read more

impl From<FastFieldNotAvailableError> for TantivyError
[src]

Performs the conversion.

impl From<IOError> for TantivyError
[src]

Performs the conversion.

impl From<Error> for TantivyError
[src]

Performs the conversion.

impl From<QueryParserError> for TantivyError
[src]

Performs the conversion.

impl<Guard> From<PoisonError<Guard>> for TantivyError
[src]

Performs the conversion.

impl From<OpenReadError> for TantivyError
[src]

Performs the conversion.

impl From<DocParsingError> for TantivyError
[src]

Performs the conversion.

impl From<OpenWriteError> for TantivyError
[src]

Performs the conversion.

impl From<OpenDirectoryError> for TantivyError
[src]

Performs the conversion.

impl From<Error> for TantivyError
[src]

Performs the conversion.

Auto Trait Implementations