ruva-core 0.19.4

Rust Library For Event Driven TEvent Handling
Documentation
use crate::prelude::TEvent;

#[derive(Debug, Clone)]
pub enum BaseError {
	NotFound,
	StopSentinel,
	TransactionError,
	StopSentinelWithEvent(std::sync::Arc<dyn TEvent>),
	DatabaseError(String),
	ServiceError,
}

pub trait ApplicationResponse: Send + Sync {}

pub trait ApplicationError: 'static + std::fmt::Debug + Send + Sync {}
impl ApplicationError for BaseError {}

impl From<BaseError> for Box<dyn ApplicationError> {
	fn from(value: BaseError) -> Self {
		Box::new(value)
	}
}

impl ApplicationResponse for () {}

impl ApplicationError for () {}