1use alloc::string::String;
2
3#[derive(Debug, thiserror::Error)]
7pub enum ExecutionOptionsError {
8 #[error(
9 "expected number of cycles {expected_cycles} must be smaller than the maximum number of cycles {max_cycles}"
10 )]
11 ExpectedCyclesTooBig { max_cycles: u32, expected_cycles: u32 },
12 #[error("maximum number of cycles {max_cycles} must be greater than {min_cycles_limit}")]
13 MaxCycleNumTooSmall { max_cycles: u32, min_cycles_limit: usize },
14 #[error("maximum number of cycles {max_cycles} must be less than {max_cycles_limit}")]
15 MaxCycleNumTooBig { max_cycles: u32, max_cycles_limit: u32 },
16 #[error(
17 "invalid hash function '{hash_function}'. Valid options are: blake3-192, blake3-256, rpo, rpx, poseidon2"
18 )]
19 InvalidHashFunction { hash_function: String },
20}