tempo_evm/
error.rs

1//! Error types for Tempo EVM operations.
2
3use reth_consensus::ConsensusError;
4
5/// Errors that can occur during EVM configuration and execution.
6#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
7pub enum TempoEvmError {
8    /// Error decoding fee lane data from extra data field.
9    #[error("failed to decode fee lane data: {0}")]
10    FeeLaneDecoding(#[from] ConsensusError),
11
12    /// Invalid EVM configuration.
13    #[error("invalid EVM configuration: {0}")]
14    InvalidEvmConfig(String),
15
16    /// No subblock metadata system transaction is found in the block.
17    #[error("couldn't find subblock metadata transaction in block")]
18    NoSubblockMetadataFound,
19}