cw3_fixed_multisig/
error.rs

1use cosmwasm_std::StdError;
2use cw_utils::ThresholdError;
3
4use thiserror::Error;
5
6#[derive(Error, Debug, PartialEq)]
7pub enum ContractError {
8    #[error("{0}")]
9    Std(#[from] StdError),
10
11    #[error("{0}")]
12    Threshold(#[from] ThresholdError),
13
14    #[error("Required weight cannot be zero")]
15    ZeroWeight {},
16
17    #[error("Not possible to reach required (passing) weight")]
18    UnreachableWeight {},
19
20    #[error("No voters")]
21    NoVoters {},
22
23    #[error("Unauthorized")]
24    Unauthorized {},
25
26    #[error("Proposal is not open")]
27    NotOpen {},
28
29    #[error("Proposal voting period has expired")]
30    Expired {},
31
32    #[error("Proposal must expire before you can close it")]
33    NotExpired {},
34
35    #[error("Wrong expiration option")]
36    WrongExpiration {},
37
38    #[error("Already voted on this proposal")]
39    AlreadyVoted {},
40
41    #[error("Proposal must have passed and not yet been executed")]
42    WrongExecuteStatus {},
43
44    #[error("Cannot close completed or passed proposals")]
45    WrongCloseStatus {},
46}