bulwark_decision/
errors.rs

1/// Returned when a threshold is either out-of-order or out-of-range.
2#[derive(thiserror::Error, Debug)]
3pub enum ThresholdError {
4    #[error("invalid threshold order, must be trust < accept < suspicious < restrict")]
5    ThresholdOutOfOrder,
6    #[error("invalid threshold range, must be 0.0-1.0, got {0}")]
7    ThresholdOutOfRange(f64),
8}