cw_boolean_contract/errors.rs
1//! The errors that can be thrown for this boolean contract, including demonstration ones.
2
3use cosmwasm_std::StdError;
4use thiserror::Error;
5
6/// List of common errors, including ones with arguments
7#[derive(Error, Debug)]
8pub enum ContractError {
9 #[error("{0}")]
10 Std(#[from] StdError),
11
12 #[error("Unauthorized")]
13 Unauthorized {},
14
15 #[error("This error will print a variable: {parameter1})")]
16 SpecificError { parameter1: String },
17}