Skip to main content

forest/interpreter/
errors.rs

1// Copyright 2019-2026 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4use crate::blocks;
5use thiserror::Error;
6
7/// Interpreter error.
8#[derive(Debug, Error)]
9pub enum Error {
10    #[error("failed to read state from the database: {0}")]
11    Lookup(#[from] anyhow::Error),
12
13    #[error(transparent)]
14    Signature(#[from] blocks::Error),
15}