binius_core/reed_solomon/
error.rs1#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[error("incorrect buffer length: expected {expected}, got {actual}")]
6 IncorrectBufferLength { expected: usize, actual: usize },
7 #[error("the evaluation domain of the code does not match the subspace of the NTT encoder")]
8 EncoderSubspaceMismatch,
9 #[error("the dimension of the evaluation domain of the code does not match the parameters")]
10 SubspaceDimensionMismatch,
11 #[error("math error: {0}")]
12 Math(#[from] binius_math::Error),
13 #[error("NTT error: {0}")]
14 NTT(#[from] binius_ntt::Error),
15}