1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2019-2024 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use crate::blocks;
use thiserror::Error;

/// Interpreter error.
#[derive(Debug, Error)]
pub enum Error {
    #[error("failed to read state from the database: {0}")]
    Lookup(#[from] anyhow::Error),

    #[error(transparent)]
    Signature(#[from] blocks::Error),
}