Nova/src/errors.rs
src/errors.rsRaw
1//! This module defines errors returned by the library.
2use core::fmt::Debug;
3
4/// Errors returned by Nova
5#[derive(Clone, Debug, Eq, PartialEq)]
6pub enum NovaError {
7 /// returned if the supplied row or col in (row,col,val) tuple is out of range
8 InvalidIndex,
9 /// returned if the supplied input is not of the right length
10 InvalidInputLength,
11 /// returned if the supplied witness is not of the right length
12 InvalidWitnessLength,
13 /// returned if the supplied witness is not a satisfying witness to a given shape and instance
14 UnSat,
15 /// returned when the supplied compressed commitment cannot be decompressed
16 DecompressionError,
17}