use primitives::algebra::BoxedUint;
use crate::errors::AbortError;
#[derive(Debug, Clone, thiserror::Error)]
pub enum PreprocessingBundlerError {
#[error("Insufficient {0} triples.")]
InsufficientTriples(String),
#[error("Insufficient {0} singlets.")]
InsufficientSinglets(String),
#[error("Insufficient {0} daBits.")]
InsufficientDaBits(String),
#[error("Insufficient pow preprocessing for exponent {0:?}.")]
InsufficientPowPreprocessing(BoxedUint),
#[error("Preprocessing source error: {0}")]
PreprocessingSourceError(#[from] AbortError),
#[error("Extra preprocessing: {0}")]
ExtraPreprocessing(String),
}