use thiserror::Error;
use crate::primitives::JournalId;
#[derive(Error, Debug)]
pub enum JournalError {
#[error("JournalError - Sqlx: {0}")]
Sqlx(#[from] sqlx::Error),
#[error("JournalError - EntityError: {0}")]
EntityError(#[from] crate::entity::EntityError),
#[error("AccountError - NotFound: id '{0}' not found")]
CouldNotFindById(JournalId),
}