1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Defines error in report functions.

use crate::load;

use super::book_keeping;

/// Error arised in report APIs.
#[derive(thiserror::Error, Debug)]
pub enum ReportError {
    #[error("failed to load the given file")]
    Load(#[from] load::LoadError),
    #[error("failed to process the given transaction")]
    BookKeep(#[from] book_keeping::BookKeepError),
}