cala_ledger/entry/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum EntryError {
5 #[error("EntryError - Sqlx: {0}")]
6 Sqlx(#[from] sqlx::Error),
7 #[error("JournalError - EsEntityError: {0}")]
8 EsEntityError(es_entity::EsEntityError),
9 #[error("JournalError - CursorDestructureError: {0}")]
10 CursorDestructureError(#[from] es_entity::CursorDestructureError),
11}
12
13es_entity::from_es_entity_error!(EntryError);