revm_statetest_types/
error.rs

1use revm::primitives::B256;
2use thiserror::Error;
3
4/// Errors that can occur during test setup and execution
5#[derive(Debug, Error)]
6pub enum TestError {
7    /// Unknown private key.
8    #[error("unknown private key: {0:?}")]
9    UnknownPrivateKey(B256),
10    /// Invalid transaction type.
11    #[error("invalid transaction type")]
12    InvalidTransactionType,
13    /// Unexpected exception.
14    #[error("unexpected exception: got {got_exception:?}, expected {expected_exception:?}")]
15    UnexpectedException {
16        /// Expected exception.
17        expected_exception: Option<String>,
18        /// Got exception.
19        got_exception: Option<String>,
20    },
21}