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
PathDoesNotExist(PathBuf)
Path does not exist.
FileAlreadyExists(PathBuf)
File already exists, this is a problem when we try to write into a new file.
LockFailure(LockType)
Failed to acquire file lock
IOError(IOError)
IO Error.
CorruptedFile(PathBuf)
The data within is corrupted.
For instance, it contains invalid JSON.
Poisoned
A thread holding the locked panicked and poisoned the lock.
InvalidArgument(String)
Invalid argument was passed by the user.
ErrorInThread(String)
An Error happened in one of the thread.
SchemaError(String)
An Error appeared related to the schema.
FastFieldError(FastFieldNotAvailableError)
Tried to access a fastfield reader for a field not configured accordingly.
Trait Implementations
impl Debug for TantivyError
[src]
impl Debug for TantivyError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<FastFieldNotAvailableError> for TantivyError
[src]
impl From<FastFieldNotAvailableError> for TantivyError
fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
[src]
fn from(fastfield_error: FastFieldNotAvailableError) -> TantivyError
Performs the conversion.
impl From<IOError> for TantivyError
[src]
impl From<IOError> for TantivyError
fn from(io_error: IOError) -> TantivyError
[src]
fn from(io_error: IOError) -> TantivyError
Performs the conversion.
impl From<Error> for TantivyError
[src]
impl From<Error> for TantivyError
fn from(io_error: Error) -> TantivyError
[src]
fn from(io_error: Error) -> TantivyError
Performs the conversion.
impl From<QueryParserError> for TantivyError
[src]
impl From<QueryParserError> for TantivyError
fn from(parsing_error: QueryParserError) -> TantivyError
[src]
fn from(parsing_error: QueryParserError) -> TantivyError
Performs the conversion.
impl<Guard> From<PoisonError<Guard>> for TantivyError
[src]
impl<Guard> From<PoisonError<Guard>> for TantivyError
fn from(_: PoisonError<Guard>) -> TantivyError
[src]
fn from(_: PoisonError<Guard>) -> TantivyError
Performs the conversion.
impl From<OpenReadError> for TantivyError
[src]
impl From<OpenReadError> for TantivyError
fn from(error: OpenReadError) -> TantivyError
[src]
fn from(error: OpenReadError) -> TantivyError
Performs the conversion.
impl From<DocParsingError> for TantivyError
[src]
impl From<DocParsingError> for TantivyError
fn from(error: DocParsingError) -> TantivyError
[src]
fn from(error: DocParsingError) -> TantivyError
Performs the conversion.
impl From<OpenWriteError> for TantivyError
[src]
impl From<OpenWriteError> for TantivyError
fn from(error: OpenWriteError) -> TantivyError
[src]
fn from(error: OpenWriteError) -> TantivyError
Performs the conversion.
impl From<OpenDirectoryError> for TantivyError
[src]
impl From<OpenDirectoryError> for TantivyError
fn from(error: OpenDirectoryError) -> TantivyError
[src]
fn from(error: OpenDirectoryError) -> TantivyError
Performs the conversion.
impl From<Error> for TantivyError
[src]
impl From<Error> for TantivyError
fn from(error: Error) -> TantivyError
[src]
fn from(error: Error) -> TantivyError
Performs the conversion.
Auto Trait Implementations
impl Send for TantivyError
impl Send for TantivyError
impl Sync for TantivyError
impl Sync for TantivyError