use thiserror::Error;
#[derive(Debug, Clone, Eq, PartialEq, Error)]
pub enum GenericDegreeError {
#[error("sumcheck round count mismatch: expected {expected}, got {actual}")]
RoundCountMismatch {
expected: usize,
actual: usize,
},
#[error("sumcheck round {round}: polynomial has {actual} evals, expected {expected}")]
PolyEvalCountMismatch {
round: usize,
expected: usize,
actual: usize,
},
#[error("sumcheck pow witness count mismatch: expected {expected}, got {actual}")]
PowWitnessCountMismatch {
expected: usize,
actual: usize,
},
#[error("sumcheck round {round}: missing pow witness")]
MissingPowWitness {
round: usize,
},
#[error("sumcheck round {round}: invalid pow witness")]
InvalidPowWitness {
round: usize,
},
#[error("sumcheck degree must be at least one, got {degree}")]
InvalidDegree {
degree: usize,
},
}