Enum tantivy::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    PathDoesNotExist(PathBuf),
    FileAlreadyExists(PathBuf),
    IOError(IOError),
    CorruptedFile(PathBuf),
    Poisoned,
    InvalidArgument(String),
    ErrorInThread(String),
    SchemaError(String),
    FastFieldError(FastFieldNotAvailableError),
}

The kind of an error.

Variants

A convenient variant for String.

Path does not exist.

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

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 lack of a field.

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

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind

Formats the value using the given formatter. Read more

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.