proof_of_sql/base/scalar/error.rs
1use alloc::string::String;
2use snafu::Snafu;
3
4#[derive(Snafu, Debug)]
5/// These errors occur when a scalar conversion fails.
6pub enum ScalarConversionError {
7 #[snafu(display("Overflow error: {error}"))]
8 /// This error occurs when a scalar is too large to be converted.
9 Overflow {
10 /// The underlying error
11 error: String,
12 },
13}