diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-16 08:35:42 -0500 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-16 08:35:42 -0500 |
commit | f22dbef28b7420847e648b5120aac733fc501cf1 (patch) | |
tree | 1a93cdf9aaa7cddfcb5241214db82c6c4a1f92c0 /src/wallet/wallet_errors.h | |
parent | Merge pull request #1569 (diff) | |
parent | wallet: add a node RPC cache layer for simple RPC calls (diff) | |
download | monero-f22dbef28b7420847e648b5120aac733fc501cf1.tar.xz |
Merge pull request #1536
693c1908 wallet: add a node RPC cache layer for simple RPC calls (moneromooo-monero)
d86ae2be wallet2: reuse fake outs when adjusting fee on transfer (moneromooo-monero)
64da0983 core: don't try to deserialize an empty extra to remove a field (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_errors.h')
-rw-r--r-- | src/wallet/wallet_errors.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index 93e7c2ec3..785a72e4b 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -626,6 +626,18 @@ namespace tools std::string m_request; }; //---------------------------------------------------------------------------------------------------- + struct wallet_generic_rpc_error : public wallet_rpc_error + { + explicit wallet_generic_rpc_error(std::string&& loc, const std::string& request, const std::string& status) + : wallet_rpc_error(std::move(loc), std::string("error in ") + request + " RPC: " + status, request), + m_status(status) + { + } + const std::string& status() const { return m_status; } + private: + const std::string m_status; + }; + //---------------------------------------------------------------------------------------------------- struct daemon_busy : public wallet_rpc_error { explicit daemon_busy(std::string&& loc, const std::string& request) |