diff --git a/01.workspace/heave/src/str/failed_to.rs b/01.workspace/heave/src/str/failed_to.rs index 373b1b5..c476d36 100644 --- a/01.workspace/heave/src/str/failed_to.rs +++ b/01.workspace/heave/src/str/failed_to.rs @@ -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), }