massa_ledger_exports/
error.rs

1// Copyright (c) 2022 MASSA LABS <info@massa.net>
2
3//! This file defines all error types for the ledger system
4
5use displaydoc::Display;
6use thiserror::Error;
7
8/// ledger error
9#[non_exhaustive]
10#[derive(Display, Error, Debug)]
11pub enum LedgerError {
12    /// container inconsistency: `{0}`
13    ContainerInconsistency(String),
14    /// missing entry: `{0}`
15    MissingEntry(String),
16    /// file error: `{0}`
17    FileError(String),
18}