dao_voting/error.rs
1use cosmwasm_std::StdError;
2use thiserror::Error;
3
4#[derive(Error, Debug, PartialEq)]
5pub enum VotingError {
6 #[error("{0}")]
7 Std(#[from] StdError),
8
9 #[error("min_voting_period and max_voting_period must have the same units (height or time)")]
10 DurationUnitsConflict {},
11
12 #[error("Min voting period must be less than or equal to max voting period")]
13 InvalidMinVotingPeriod {},
14}