Skip to main content

core_utils/preprocessing/
errors.rs

1use primitives::algebra::BoxedUint;
2
3use crate::errors::AbortError;
4
5#[derive(Debug, Clone, thiserror::Error)]
6pub enum PreprocessingBundlerError {
7    #[error("Insufficient {0} triples.")]
8    InsufficientTriples(String),
9    #[error("Insufficient {0} singlets.")]
10    InsufficientSinglets(String),
11    #[error("Insufficient {0} daBits.")]
12    InsufficientDaBits(String),
13    #[error("Insufficient pow preprocessing for exponent {0:?}.")]
14    InsufficientPowPreprocessing(BoxedUint),
15    #[error("Preprocessing source error: {0}")]
16    PreprocessingSourceError(#[from] AbortError),
17    #[error("Extra preprocessing: {0}")]
18    ExtraPreprocessing(String),
19}