doc: add doc comments to FailedTo

This commit is contained in:
2025-10-09 15:24:31 +02:00
parent 4c964efd42
commit 784c171871

View File

@@ -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),
}