1 // Copyright (c) 2021-present The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 5 #ifndef BITCOIN_IPC_EXCEPTION_H
6 #define BITCOIN_IPC_EXCEPTION_H
7 8 #include <stdexcept>
9 10 namespace ipc {
11 //! Exception class thrown when a call to remote method fails due to an IPC
12 //! error, like a socket getting disconnected.
13 class Exception : public std::runtime_error
14 {
15 public:
16 using std::runtime_error::runtime_error;
17 };
18 } // namespace ipc
19 20 #endif // BITCOIN_IPC_EXCEPTION_H
21