abstract_polytone_voice/
error.rs1use cosmwasm_std::{Instantiate2AddressError, StdError};
2use cw_utils::ParseReplyError;
3use thiserror::Error;
4
5#[derive(Error, Debug, PartialEq)]
6pub enum ContractError {
7 #[error(transparent)]
8 Std(#[from] StdError),
9
10 #[error(transparent)]
11 Parse(#[from] ParseReplyError),
12
13 #[error(transparent)]
14 Instantiate2(#[from] Instantiate2AddressError),
15
16 #[error(transparent)]
17 Handshake(#[from] polytone::handshake::error::HandshakeError),
18
19 #[error("only the contract itself may call this method")]
20 NotSelf,
21
22 #[error("Proxy code id can't be zero")]
23 CodeIdCantBeZero,
24
25 #[error("ACK_GAS_NEEDED can't be higher then BLOCK_MAX_GAS")]
26 GasLimitsMismatch,
27}