pub enum DatabaseError {
FileNotFound,
IOError(Error),
InvalidGlobSet(Error),
ChangeLogInUse,
PoisonedLogMutex,
}Expand description
The primary error type for all database loading and mutation operations.
This enum consolidates errors from various sources, including file I/O, pattern matching, and concurrent access issues, into a single, unified type.
Variants§
FileNotFound
An attempt was made to access a file that does not exist in the database.
IOError(Error)
An error occurred during a filesystem read or write operation.
InvalidGlobSet(Error)
The set of user-provided glob patterns could not be compiled into a GlobSet.
ChangeLogInUse
An attempt was made to commit or consume a ChangeLog while other
references to it still exist, indicating that other threads may not have
finished their work.
PoisonedLogMutex
The lock on a ChangeLog was “poisoned.”
This happens when a thread panics while holding the lock, leaving the data in an unrecoverable and potentially inconsistent state.