doc: add doc comments to FailedTo
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
use crate::*;
|
||||
|
||||
/// Represents the possible failures that can occur in the library.
|
||||
#[derive(Debug, PartialEq, PartialOrd, Eq, Ord, Clone, Copy, Hash)]
|
||||
pub enum E {
|
||||
/// Failed to initialize the database.
|
||||
InitDatabase,
|
||||
/// Failed to load data from the database.
|
||||
LoadFromDB,
|
||||
/// Failed to map a database row to an attribute.
|
||||
MapAttribute,
|
||||
/// Failed to map a database row to an entity.
|
||||
MapEntity,
|
||||
/// Failed to persist the catalog to the database.
|
||||
PersistCatalog,
|
||||
/// A failure originating from the underlying SQLite implementation.
|
||||
SQLite(sqlite::FailedTo),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user