use wincode::{SchemaRead, SchemaWrite};
use crate::correlated_randomness::stream::CorrelatedStreamError;
#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq, SchemaRead, SchemaWrite)]
pub enum BundlerError {
#[error("Insufficient preprocessing: {0}")]
InsufficientPreprocessing(String),
#[error("Extra preprocessing remaining: {0}")]
ExtraPreprocessing(String),
#[error("Stream error: {0}")]
StreamError(#[from] CorrelatedStreamError),
}