1use cosmwasm_std::StdError;
2use thiserror::Error;
3
4#[derive(Error, Debug, PartialEq)]
5pub enum ContractError {
6 #[error("{0}")]
7 Std(#[from] StdError),
8
9 #[error("Unauthorized")]
10 Unauthorized {},
11
12 #[error("Cannot set to own account")]
13 CannotSetOwnAccount,
14
15 #[error("Send some coins to create an escrow")]
16 EmptyBalance {},
17
18 #[error("Escrow id already in use")]
19 AlreadyInUse {},
20
21 #[error("Only accepts tokens in the cw20_whitelist")]
22 NotInWhitelist {},
23
24 #[error("Escrow is expired")]
25 Expired {},
26
27 #[error("Recipient is not set")]
28 RecipientNotSet {}
29}