1use thiserror::Error;
2
3#[non_exhaustive]
5#[derive(Error, Debug, PartialEq)]
6pub enum Error {
7 #[error("max power is too high, check that n <= 64")]
8 MaxPowerTooHigh,
9 #[error("max power is too low, check that a + b < n")]
10 MaxPowerTooLow,
11 #[error("invalid percentile, must be in range 0.0..=100.0")]
12 InvalidPercentile,
13 #[error("the value is outside of the storable range")]
14 OutOfRange,
15 #[error("the histogram parameters are incompatible")]
16 IncompatibleParameters,
17 #[error("the snapshot time ranges do not allow this operation")]
18 IncompatibleTimeRange,
19 #[error("an overflow occurred")]
20 Overflow,
21 #[error("an underflow occurred")]
22 Underflow,
23 #[error("the histogram is not a subset")]
24 InvalidSubset,
25}