aboutsummaryrefslogtreecommitdiff
path: root/src/ipc/exception.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-12-05 15:57:12 -0500
committerRussell Yanofsky <russ@yanofsky.org>2021-04-23 03:02:50 -0500
commit10afdf0280fa93bfffb0a7665c60dc155cd84514 (patch)
tree52512c1d233e30778833b525944ee1935514dc44 /src/ipc/exception.h
parent745c9cebd50fea1664efef571dc1ee1bddc96102 (diff)
downloadbitcoin-10afdf0280fa93bfffb0a7665c60dc155cd84514.tar.xz
multiprocess: Add Ipc interface implementation
Diffstat (limited to 'src/ipc/exception.h')
-rw-r--r--src/ipc/exception.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ipc/exception.h b/src/ipc/exception.h
new file mode 100644
index 0000000000..53dee8124a
--- /dev/null
+++ b/src/ipc/exception.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2021 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_IPC_EXCEPTION_H
+#define BITCOIN_IPC_EXCEPTION_H
+
+#include <stdexcept>
+
+namespace ipc {
+//! Exception class thrown when a call to remote method fails due to an IPC
+//! error, like a socket getting disconnected.
+class Exception : public std::runtime_error
+{
+public:
+ using std::runtime_error::runtime_error;
+};
+} // namespace ipc
+
+#endif // BITCOIN_IPC_EXCEPTION_H