1
2
3
4
5
6
7
8
9
10
11
12
13
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),
}