astroport_oracle/error.rs
1use cosmwasm_std::StdError;
2use thiserror::Error;
3
4/// This enum describes oracle contract errors
5#[derive(Error, Debug)]
6pub enum ContractError {
7 #[error("{0}")]
8 Std(#[from] StdError),
9
10 #[error("Unauthorized")]
11 Unauthorized {},
12
13 #[error("Period not elapsed")]
14 WrongPeriod {},
15
16 #[error("Contract can't be migrated!")]
17 MigrationError {},
18}