xref: /openbmc/bmcweb/src/boost_asio.cpp (revision 24d67ff8960f210b574738f53b44a73ebdd4c003)
1 #include "logging.hpp"
2 
3 #include <boost/asio/impl/src.hpp>
4 #include <boost/assert/source_location.hpp>
5 
6 #include <exception>
7 
8 namespace boost
9 {
10 void throw_exception(const std::exception& e)
11 {
12     BMCWEB_LOG_CRITICAL << "Boost exception thrown " << e.what();
13     std::terminate();
14 }
15 
16 void throw_exception(const std::exception& e, const source_location& loc)
17 {
18     BMCWEB_LOG_CRITICAL << "Boost exception thrown " << e.what() << " from "
19                         << loc;
20     std::terminate();
21 }
22 } // namespace boost
23