kona_derive/errors/
stages.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
//! Error types for derivation pipeline stages.

use op_alloy_protocol::MAX_SPAN_BATCH_ELEMENTS;

/// A frame decompression error.
#[derive(derive_more::Display, Debug, PartialEq, Eq)]
pub enum BatchDecompressionError {
    /// The buffer exceeds the [MAX_SPAN_BATCH_ELEMENTS] protocol parameter.
    #[display("The batch exceeds the maximum number of elements: {max_size}", max_size = MAX_SPAN_BATCH_ELEMENTS)]
    BatchTooLarge,
}

impl core::error::Error for BatchDecompressionError {}