abstract_module_factory/
error.rs

1use abstract_std::{objects::registry::RegistryError, AbstractError};
2use cosmwasm_std::{Instantiate2AddressError, StdError};
3use cw_ownable::OwnershipError;
4use thiserror::Error;
5
6#[derive(Error, Debug, PartialEq)]
7pub enum ModuleFactoryError {
8    #[error(transparent)]
9    Std(#[from] StdError),
10
11    #[error(transparent)]
12    Abstract(#[from] AbstractError),
13
14    #[error(transparent)]
15    Ownership(#[from] OwnershipError),
16
17    #[error(transparent)]
18    Instantiate2AddressError(#[from] Instantiate2AddressError),
19
20    #[error(transparent)]
21    RegistryError(#[from] RegistryError),
22
23    #[error("This module type can not be installed on your Account")]
24    ModuleNotInstallable {},
25}