ai_ora/error.rs
1use cosmwasm_std::StdError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum ContractError {
6 #[error("{0}")]
7 Std(#[from] StdError),
8
9 #[error("Unauthorized")]
10 Unauthorized {},
11 // Add any other custom errors you like here.
12 // Look at https://docs.rs/thiserror/1.0.21/thiserror/ for details.
13}