appletheia_application/outbox/outbox_fetcher_error.rs
1use std::error::Error;
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum OutboxFetcherError {
7 #[error("outbox mapping failed: {0}")]
8 MappingFailed(#[source] Box<dyn Error + Send + Sync + 'static>),
9
10 #[error("outbox persistence error: {0}")]
11 Persistence(#[source] Box<dyn Error + Send + Sync + 'static>),
12
13 #[error("transaction is not active")]
14 NotInTransaction,
15}