diff options
| author | rbrunner7 <rbrunner@dreamshare.ch> | 2018-10-28 14:46:58 +0100 |
|---|---|---|
| committer | rbrunner7 <rbrunner@dreamshare.ch> | 2018-12-12 21:49:20 +0100 |
| commit | 1ebcd7b9b0b6c6a81d7439a4ba717df364c94db8 (patch) | |
| tree | cb200f15b8038462a38c0051c34408d65de36f00 /src/wallet/wallet_errors.h | |
| parent | 6bc0c7e6850d9b35ce48e3a7f494be95f5247604 (diff) | |
| download | monzero-core-1ebcd7b9b0b6c6a81d7439a4ba717df364c94db8.tar.gz monzero-core-1ebcd7b9b0b6c6a81d7439a4ba717df364c94db8.tar.xz monzero-core-1ebcd7b9b0b6c6a81d7439a4ba717df364c94db8.zip | |
MMS (Multisig Messaging System): Initial version
Diffstat (limited to 'src/wallet/wallet_errors.h')
| -rw-r--r-- | src/wallet/wallet_errors.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index e2caee5d2..35862bda1 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -821,6 +821,31 @@ namespace tools std::string m_wallet_file; }; //---------------------------------------------------------------------------------------------------- + struct mms_error : public wallet_logic_error + { + protected: + explicit mms_error(std::string&& loc, const std::string& message) + : wallet_logic_error(std::move(loc), message) + { + } + }; + //---------------------------------------------------------------------------------------------------- + struct no_connection_to_bitmessage : public mms_error + { + explicit no_connection_to_bitmessage(std::string&& loc, const std::string& address) + : mms_error(std::move(loc), "no connection to PyBitmessage at address " + address) + { + } + }; + //---------------------------------------------------------------------------------------------------- + struct bitmessage_api_error : public mms_error + { + explicit bitmessage_api_error(std::string&& loc, const std::string& error_string) + : mms_error(std::move(loc), "PyBitmessage returned " + error_string) + { + } + }; + //---------------------------------------------------------------------------------------------------- #if !defined(_MSC_VER) |
