korrosync 0.4.0

A KOReader Sync Server
Documentation
//! Error types for the model layer.
//!
//! This module defines error types that can occur during model operations,
//! such as user creation, password hashing, or validation failures.
//!

use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error(transparent)]
    Runtime(Box<dyn std::error::Error + Send + Sync>),
}

impl Error {
    pub fn runtime(e: impl std::error::Error + Send + Sync + 'static) -> Self {
        Error::Runtime(Box::new(e))
    }
}