dao_test_custom_factory/
error.rs1use cosmwasm_std::StdError;
2use cw_utils::{ParseReplyError, PaymentError};
3use dao_voting::threshold::ActiveThresholdError;
4use thiserror::Error;
5
6#[derive(Error, Debug)]
7pub enum ContractError {
8 #[error("{0}")]
9 Std(#[from] StdError),
10
11 #[error(transparent)]
12 ActiveThresholdError(#[from] ActiveThresholdError),
13
14 #[error(transparent)]
15 ParseReplyError(#[from] ParseReplyError),
16
17 #[error(transparent)]
18 PaymentError(#[from] PaymentError),
19
20 #[error("New NFT contract must be instantiated with at least one NFT")]
21 NoInitialNfts {},
22
23 #[error("Unauthorized")]
24 Unauthorized {},
25
26 #[error("Got a submessage reply with unknown id: {id}")]
27 UnknownReplyId { id: u64 },
28
29 #[error("Factory message must serialize to WasmMsg::Execute")]
30 UnsupportedFactoryMsg {},
31}