cw_skeleton/
errors.rs

1//! The errors that can be thrown for this boolean contract, including demonstration ones.
2
3use cosmwasm_std::{Addr, StdError};
4use thiserror::Error;
5
6#[derive(Error, Debug)]
7pub enum ContractError {
8    #[error("{0}")]
9    Std(#[from] StdError),
10
11    /// Example error with placeholder
12    #[error("Unauthorized, method can only be called by {:?}", owner)]
13    Unauthorized { owner: Addr },
14}