-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nicolas/abs 547 remove unsued error variants (#499)
- Loading branch information
Showing
38 changed files
with
159 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,25 @@ | ||
use abstract_sdk::AbstractSdkError; | ||
use abstract_std::{objects::registry::RegistryError, AbstractError}; | ||
use cosmwasm_std::{Instantiate2AddressError, StdError}; | ||
use cw_asset::AssetError; | ||
use cw_ownable::OwnershipError; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug, PartialEq)] | ||
pub enum ModuleFactoryError { | ||
#[error("{0}")] | ||
#[error(transparent)] | ||
Std(#[from] StdError), | ||
|
||
#[error("{0}")] | ||
#[error(transparent)] | ||
Abstract(#[from] AbstractError), | ||
|
||
#[error("{0}")] | ||
AbstractSdk(#[from] AbstractSdkError), | ||
|
||
#[error("{0}")] | ||
Asset(#[from] AssetError), | ||
|
||
#[error("{0}")] | ||
#[error(transparent)] | ||
Ownership(#[from] OwnershipError), | ||
|
||
#[error("{0}")] | ||
#[error(transparent)] | ||
Instantiate2AddressError(#[from] Instantiate2AddressError), | ||
|
||
#[error("{0}")] | ||
#[error(transparent)] | ||
RegistryError(#[from] RegistryError), | ||
|
||
#[error("Calling contract is not a registered Account")] | ||
UnknownCaller(), | ||
|
||
#[error("Reply ID does not match any known Reply ID")] | ||
UnexpectedReply(), | ||
|
||
#[error("This module type can not be installed on your Account")] | ||
ModuleNotInstallable {}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.