merge branches and cleanup db

This commit is contained in:
timurgordon
2025-06-27 12:11:04 +03:00
parent 5563d7e27e
commit 1f9ec01934
177 changed files with 1202 additions and 174 deletions

View File

@@ -0,0 +1,23 @@
use thiserror::Error;
/// Error type for HeroDB operations
#[derive(Error, Debug)]
pub enum Error {
#[error("Database error: {0}")]
DbError(#[from] crate::db::error::DbError),
#[error("I/O error: {0}")]
IoError(#[from] std::io::Error),
#[error("Serialization error: {0}")]
SerializationError(#[from] bincode::Error),
#[error("OurDB error: {0}")]
OurDbError(#[from] ourdb::Error),
#[error("General error: {0}")]
GeneralError(String),
}
/// Result type for HeroDB operations
pub type Result<T> = std::result::Result<T, Error>;