tsuzuri 0.1.285

Tsuzuri is a Event Sourcing framework for Rust, designed to be simple and easy to use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::error;

#[derive(Debug, thiserror::Error)]
pub enum AggregateError<T: error::Error> {
    #[error("{0}")]
    UserError(T),
    #[error("aggregate conflict")]
    AggregateConflict,
    #[error("{0}")]
    DatabaseConnectionError(Box<dyn error::Error + Send + Sync + 'static>),
    #[error("{0}")]
    DeserializationError(Box<dyn error::Error + Send + Sync + 'static>),
    #[error("{0}")]
    UnexpectedError(Box<dyn error::Error + Send + Sync + 'static>),
}