kona_derive/errors/
attributes.rsuse alloc::string::String;
use alloy_eips::BlockNumHash;
use alloy_primitives::B256;
#[derive(derive_more::Display, Clone, Debug, PartialEq, Eq)]
pub enum BuilderError {
#[display("Block mismatch. Expected {_0:?}, got {_1:?}")]
BlockMismatch(BlockNumHash, BlockNumHash),
#[display("Block mismatch on epoch reset. Expected {_0:?}, got {_1:?}")]
BlockMismatchEpochReset(BlockNumHash, BlockNumHash, B256),
#[display("System config update failed")]
SystemConfigUpdate,
#[display("Time invariant broken. L1 origin: {_0:?} | Next L2 time: {_1} | L1 block: {_2:?} | L1 timestamp {_3:?}")]
BrokenTimeInvariant(BlockNumHash, u64, BlockNumHash, u64),
#[display("Attributes unavailable")]
AttributesUnavailable,
#[display("Error in attributes builder: {_0}")]
Custom(String),
}
impl core::error::Error for BuilderError {}