Database access refactor (#190)

This commit is contained in:
Gregory Schier
2025-03-25 08:35:10 -07:00
committed by GitHub
parent 445c30f3a9
commit 1d37d46130
72 changed files with 4895 additions and 4702 deletions

View File

@@ -3,27 +3,30 @@ use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Render error: {0}")]
#[error(transparent)]
TemplateError(#[from] yaak_templates::error::Error),
#[error("Model error: {0}")]
#[error(transparent)]
ModelError(#[from] yaak_models::error::Error),
#[error("Sync error: {0}")]
#[error(transparent)]
SyncError(#[from] yaak_sync::error::Error),
#[error("Git error: {0}")]
#[error(transparent)]
GitError(#[from] yaak_git::error::Error),
#[error("Websocket error: {0}")]
#[error(transparent)]
WebsocketError(#[from] yaak_ws::error::Error),
#[error("License error: {0}")]
#[error(transparent)]
LicenseError(#[from] yaak_license::error::Error),
#[error("Plugin error: {0}")]
#[error(transparent)]
PluginError(#[from] yaak_plugins::error::Error),
#[error("Updater error: {0}")]
UpdaterError(#[from] tauri_plugin_updater::Error),
#[error("Request error: {0}")]
RequestError(#[from] reqwest::Error),