1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2022 MASSA LABS <info@massa.net>

//! This file defines all error types for the ledger system

use displaydoc::Display;
use thiserror::Error;

/// ledger error
#[non_exhaustive]
#[derive(Display, Error, Debug)]
pub enum LedgerError {
    /// container inconsistency: `{0}`
    ContainerInconsistency(String),
    /// missing entry: `{0}`
    MissingEntry(String),
    /// file error: `{0}`
    FileError(String),
}